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
STRIP =
WARN_MSG =
else
-STRIP = -s
+STRIP = -Wl,-x
WARN_MSG = "(without symbols) "
endif
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
STRIP =
WARN_MSG =
else
-STRIP = -s
+STRIP = -Wl,-x
WARN_MSG = "(without symbols) "
endif
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