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} \ PREFIX=/usr \
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \ LIB=/usr/lib \
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now" QMAKE_CFLAGS="${CFLAGS}" \
else QMAKE_CXXFLAGS="${CXXFLAGS}" \
qmake ${configure_args} QMAKE_LFLAGS="${LDFLAGS}"
fi
} }
do_build() { do_build() {