mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Use -Wl,-x instead of -s: it is more portable, and in particular,
is needed on BSD (MacOS). Also, use -Ldir instead of -L dir on the link line. Same reason... llvm-svn: 5068
This commit is contained in:
parent
93b0272717
commit
f8f55b5549
@ -144,7 +144,7 @@ ifdef KEEP_SYMBOLS
|
|||||||
STRIP =
|
STRIP =
|
||||||
WARN_MSG =
|
WARN_MSG =
|
||||||
else
|
else
|
||||||
STRIP = -s
|
STRIP = -Wl,-x
|
||||||
WARN_MSG = "(without symbols) "
|
WARN_MSG = "(without symbols) "
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -174,9 +174,9 @@ Link := $(PURIFY) $(CXX) -static
|
|||||||
else
|
else
|
||||||
Link := $(CXX)
|
Link := $(CXX)
|
||||||
endif
|
endif
|
||||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
LinkG := $(Link) -g -L$(LIBDEBUG) $(STRIP)
|
||||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
LinkO := $(Link) -O3 -L$(LIBRELEASE)
|
||||||
LinkP := $(Link) -O3 -L $(LIBPROFILE) $(PROFILE)
|
LinkP := $(Link) -O3 -L$(LIBPROFILE) $(PROFILE)
|
||||||
|
|
||||||
# Create one .o file from a bunch of .o files...
|
# Create one .o file from a bunch of .o files...
|
||||||
Relink = ld -r
|
Relink = ld -r
|
||||||
|
@ -144,7 +144,7 @@ ifdef KEEP_SYMBOLS
|
|||||||
STRIP =
|
STRIP =
|
||||||
WARN_MSG =
|
WARN_MSG =
|
||||||
else
|
else
|
||||||
STRIP = -s
|
STRIP = -Wl,-x
|
||||||
WARN_MSG = "(without symbols) "
|
WARN_MSG = "(without symbols) "
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -174,9 +174,9 @@ Link := $(PURIFY) $(CXX) -static
|
|||||||
else
|
else
|
||||||
Link := $(CXX)
|
Link := $(CXX)
|
||||||
endif
|
endif
|
||||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
LinkG := $(Link) -g -L$(LIBDEBUG) $(STRIP)
|
||||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
LinkO := $(Link) -O3 -L$(LIBRELEASE)
|
||||||
LinkP := $(Link) -O3 -L $(LIBPROFILE) $(PROFILE)
|
LinkP := $(Link) -O3 -L$(LIBPROFILE) $(PROFILE)
|
||||||
|
|
||||||
# Create one .o file from a bunch of .o files...
|
# Create one .o file from a bunch of .o files...
|
||||||
Relink = ld -r
|
Relink = ld -r
|
||||||
|
Loading…
Reference in New Issue
Block a user