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.
|
# 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() {
|
||||||
|
|
Loading…
Reference in a new issue