diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-12-16 01:31:18 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-12-16 01:31:18 +0000 |
commit | ec4d36276f3b2916dd2430144dc228759d8b2ea2 (patch) | |
tree | c3469a1a997927f1560b12f7385462c74ff55e91 /Makefile.common | |
parent | b167c04e626b7ee9609330a8ffa397a85611d49d (diff) |
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...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common index d58b118741..587065b834 100644 --- a/Makefile.common +++ b/Makefile.common @@ -144,7 +144,7 @@ ifdef KEEP_SYMBOLS STRIP = WARN_MSG = else -STRIP = -s +STRIP = -Wl,-x WARN_MSG = "(without symbols) " endif @@ -174,9 +174,9 @@ Link := $(PURIFY) $(CXX) -static else Link := $(CXX) endif -LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP) -LinkO := $(Link) -O3 -L $(LIBRELEASE) -LinkP := $(Link) -O3 -L $(LIBPROFILE) $(PROFILE) +LinkG := $(Link) -g -L$(LIBDEBUG) $(STRIP) +LinkO := $(Link) -O3 -L$(LIBRELEASE) +LinkP := $(Link) -O3 -L$(LIBPROFILE) $(PROFILE) # Create one .o file from a bunch of .o files... Relink = ld -r |