[llvm-commits] CVS: llvm/Makefile.common
John Criswell
criswell at cs.uiuc.edu
Thu Jul 10 17:57:01 PDT 2003
Changes in directory llvm:
Makefile.common updated: 1.96.2.2 -> 1.96.2.3
---
Log message:
Fixed it to work on both Sparc and Linux.
---
Diffs of the changes:
Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.96.2.2 llvm/Makefile.common:1.96.2.3
--- llvm/Makefile.common:1.96.2.2 Thu Jul 10 17:40:38 2003
+++ llvm/Makefile.common Thu Jul 10 17:56:09 2003
@@ -491,20 +491,26 @@
# Rules for building libraries
#--------------------------------------------------------------------
+ifeq ($(OS),SunOS)
+Share=-G
+else
+Share=-shared
+endif
+
#
# Rules for building dynamically linked libraries.
#
$(LIBNAME_O): $(RealObjectsO) $(LibSubDirs) $(DESTLIBRELEASE)/.dir
@echo ======= Linking $(LIBRARYNAME) dynamic release library =======
- $(VERB) $(CXX) -shared -o $@ $(RealObjectsO) $(LibSubDirs) $(LibLinkOpts);
+ $(VERB) $(CXX) $(Share) -o $@ $(RealObjectsO) $(LibSubDirs) $(LibLinkOpts);
$(LIBNAME_P): $(ObjectsP) $(LibSubDirs) $(DESTLIBPROFILE)/.dir
@echo ======= Linking $(LIBRARYNAME) dynamic profile library =======
- $(VERB) $(CXX) -shared -o $@ $(RealObjectsP) $(LibSubDirs) $(LibLinkOpts);
+ $(VERB) $(CXX) $(Share) -o $@ $(RealObjectsP) $(LibSubDirs) $(LibLinkOpts);
$(LIBNAME_G): $(ObjectsG) $(LibSubDirs) $(DESTLIBDEBUG)/.dir
@echo ======= Linking $(LIBRARYNAME) dynamic debug library =======
- $(VERB) $(CXX) -shared -o $@ $(RealObjectsG) $(LibSubDirs) $(LibLinkOpts);
+ $(VERB) $(CXX) $(Share) -o $@ $(RealObjectsG) $(LibSubDirs) $(LibLinkOpts);
#
# Rules for building static archive libraries.
More information about the llvm-commits
mailing list