LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 01_lflags_as-needed.diff of Package qtwebkit (Project home:jsuarezr:LibrePlan)

Description: set --as-needed linker flag to avoid useless linking.
Author: Fathi Boudra <fabo@debian.org>

--- a/WebKit.pri
+++ b/WebKit.pri
@@ -58,6 +58,8 @@ symbian {
 CONFIG -= warn_on
 *-g++*:QMAKE_CXXFLAGS += -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self
 
+*-g++*:QMAKE_LFLAGS += -Wl,--as-needed
+
 # Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT
 symbian|*-armcc {
     RVCT_COMMON_CFLAGS = --gnu --diag_suppress 68,111,177,368,830,1293