build_style qmake: generalized CFLAGS/LDFLAGS passing

This commit is contained in:
Andrea Brancaleoni 2015-08-23 17:45:45 +02:00
parent c032f41f8d
commit 0321f64b72

View file

@ -2,13 +2,12 @@
# This helper is for templates using Qt4/Qt5 qmake. # This helper is for templates using Qt4/Qt5 qmake.
# #
do_configure() { do_configure() {
if [ -n "$build_pie" ]; then
qmake ${configure_args} \ qmake ${configure_args} \
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \ PREFIX=/usr \
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now" LIB=/usr/lib \
else QMAKE_CFLAGS="${CFLAGS}" \
qmake ${configure_args} QMAKE_CXXFLAGS="${CXXFLAGS}" \
fi QMAKE_LFLAGS="${LDFLAGS}"
} }
do_build() { do_build() {