build_style qmake: generalized CFLAGS/LDFLAGS passing
This commit is contained in:
parent
c032f41f8d
commit
0321f64b72
1 changed files with 6 additions and 7 deletions
|
@ -2,13 +2,12 @@
|
|||
# This helper is for templates using Qt4/Qt5 qmake.
|
||||
#
|
||||
do_configure() {
|
||||
if [ -n "$build_pie" ]; then
|
||||
qmake ${configure_args} \
|
||||
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \
|
||||
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now"
|
||||
else
|
||||
qmake ${configure_args}
|
||||
fi
|
||||
PREFIX=/usr \
|
||||
LIB=/usr/lib \
|
||||
QMAKE_CFLAGS="${CFLAGS}" \
|
||||
QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
||||
QMAKE_LFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue