mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Link .so files correctly on either linux or solaris
llvm-svn: 3703
This commit is contained in:
parent
a569560f78
commit
b26efbb4b8
@ -139,11 +139,6 @@ endif
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG)
|
||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||
|
||||
# Create a .so file from a .o files...
|
||||
#MakeSO := $(CXX) -shared $(PROFILE)
|
||||
MakeSO := $(CXX) -G $(PROFILE)
|
||||
MakeSOO := $(MakeSO) -O3
|
||||
|
||||
# Create one .o file from a bunch of .o files...
|
||||
Relink = ld -r
|
||||
|
||||
@ -199,6 +194,23 @@ endif
|
||||
|
||||
ifdef LIBRARYNAME
|
||||
|
||||
# Figure out how to make a .so file on this platform. This is really gross and
|
||||
# should be autoconfiscated (automake actually), but should hopefully work on
|
||||
# linux and solaris.
|
||||
#
|
||||
|
||||
# Create a .so file from a .o files...
|
||||
UNAME := $(shell uname)
|
||||
|
||||
ifeq ($(UNAME), SunOS)
|
||||
MakeSO := $(CXX) -G $(PROFILE)
|
||||
else
|
||||
MakeSO := $(CXX) -shared $(PROFILE)
|
||||
endif
|
||||
|
||||
MakeSOO := $(MakeSO) -O3
|
||||
|
||||
|
||||
LIBNAME_O := $(LIBRELEASE)/lib$(LIBRARYNAME).so
|
||||
LIBNAME_G := $(LIBDEBUG)/lib$(LIBRARYNAME).so
|
||||
LIBNAME_AO := $(LIBRELEASE)/lib$(LIBRARYNAME).a
|
||||
|
@ -139,11 +139,6 @@ endif
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG)
|
||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||
|
||||
# Create a .so file from a .o files...
|
||||
#MakeSO := $(CXX) -shared $(PROFILE)
|
||||
MakeSO := $(CXX) -G $(PROFILE)
|
||||
MakeSOO := $(MakeSO) -O3
|
||||
|
||||
# Create one .o file from a bunch of .o files...
|
||||
Relink = ld -r
|
||||
|
||||
@ -199,6 +194,23 @@ endif
|
||||
|
||||
ifdef LIBRARYNAME
|
||||
|
||||
# Figure out how to make a .so file on this platform. This is really gross and
|
||||
# should be autoconfiscated (automake actually), but should hopefully work on
|
||||
# linux and solaris.
|
||||
#
|
||||
|
||||
# Create a .so file from a .o files...
|
||||
UNAME := $(shell uname)
|
||||
|
||||
ifeq ($(UNAME), SunOS)
|
||||
MakeSO := $(CXX) -G $(PROFILE)
|
||||
else
|
||||
MakeSO := $(CXX) -shared $(PROFILE)
|
||||
endif
|
||||
|
||||
MakeSOO := $(MakeSO) -O3
|
||||
|
||||
|
||||
LIBNAME_O := $(LIBRELEASE)/lib$(LIBRARYNAME).so
|
||||
LIBNAME_G := $(LIBDEBUG)/lib$(LIBRARYNAME).so
|
||||
LIBNAME_AO := $(LIBRELEASE)/lib$(LIBRARYNAME).a
|
||||
|
Loading…
Reference in New Issue
Block a user