Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

COMP: Intel: add add-needed link flags for modern linux platforms

  • Loading branch information...
commit 84639d547f6053ebc3df22488608190dc7c05e66 1 parent 6d99f42
mattijs authored
2  wmake/rules/linux64Icc/c
@@ -13,4 +13,4 @@ ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
13 13 LINK_LIBS = $(cDBUG) -L$(IA32ROOT)/lib
14 14
15 15 LINKLIBSO = $(cc) $(cFLAGS) -shared
16   -LINKEXE = $(cc) $(cFLAGS)
  16 +LINKEXE = $(cc) $(cFLAGS) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
4 wmake/rules/linux64Icc/c++
@@ -17,5 +17,5 @@ cpptoo = $(Ctoo)
17 17
18 18 LINK_LIBS = $(c++DBUG) -L$(IA64ROOT)/lib
19 19
20   -LINKLIBSO = $(CC) $(c++FLAGS) -shared
21   -LINKEXE = $(CC) $(c++FLAGS)
  20 +LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
  21 +LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
2  wmake/rules/linuxIcc/c
@@ -13,4 +13,4 @@ ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
13 13 LINK_LIBS = $(cDBUG) -L$(IA32ROOT)/lib
14 14
15 15 LINKLIBSO = $(cc) $(cFLAGS) -shared
16   -LINKEXE = $(cc) $(cFLAGS)
  16 +LINKEXE = $(cc) $(cFLAGS) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
4 wmake/rules/linuxIcc/c++
@@ -19,5 +19,5 @@ cpptoo = $(Ctoo)
19 19 #LINK_LIBS = $(c++DBUG) -lstdc++
20 20 LINK_LIBS = $(c++DBUG) -L$(IA32ROOT)/lib
21 21
22   -LINKLIBSO = $(CC) $(c++FLAGS) -shared
23   -LINKEXE = $(CC) $(c++FLAGS)
  22 +LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
  23 +LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed

0 comments on commit 84639d5

Please sign in to comment.
Something went wrong with that request. Please try again.