From: Matt Ranostay Date: Mon, 25 Sep 2017 21:49:00 +0000 (-0700) Subject: qmake: avoid linking to unused libraries X-Git-Tag: 4.99.1~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=51185e65ba57d8c6f3224cec598a68a20bb0a220;p=apps%2Fmediaplayer.git qmake: avoid linking to unused libraries Add options to QMAKE_LFLAGS to avoid linking to unused libraries Bug-AGL: SPEC-907 Change-Id: If5dbc77cfc2bcc5471a4e6392f21c0fae7daef68 Signed-off-by: Matt Ranostay --- diff --git a/app/app.pri b/app/app.pri index 7ec39b1..df50dea 100644 --- a/app/app.pri +++ b/app/app.pri @@ -1,4 +1,5 @@ TEMPLATE = app +QMAKE_LFLAGS += "-Wl,--hash-style=gnu -Wl,--as-needed" load(configure) qtCompileTest(libhomescreen)