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.
#
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() {