Kaydet (Commit) 439c832f authored tarafından Patrick Luby's avatar Patrick Luby

Corrected linking steps for Mac OS X so that the number of arguments to the…

Corrected linking steps for Mac OS X so that the number of arguments to the linker is reduced. All of the -dylib_file arguments were pushing the number of arguments past the maximum that ld could handle.
üst 5a3b1e9a
This diff is collapsed.
This diff is collapsed.
......@@ -3,8 +3,8 @@
#* $Workfile: tg_app.mk $
#*
#* Ersterstellung XX TT.MM.JJ
#* Letzte Aenderung $Author: pluby $ $Date: 2001-03-03 17:27:42 $
#* $Revision: 1.19 $
#* Letzte Aenderung $Author: pluby $ $Date: 2001-03-06 19:20:33 $
#* $Revision: 1.20 $
#*
#* $Logfile: T:/solar/inc/tg_app.mkv $
#*
......@@ -94,16 +94,17 @@ $(APP$(TNR)TARGETN): $(APP$(TNR)OBJS) $(APP$(TNR)LIBS) \
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(OS)"=="MACOSX"
@+echo unx
@+-$(RM) $(MISC)$/$(@:b).list
@+-$(RM) $(MISC)$/$(@:b).cmd
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSAPP) -L$(PRJ)$/$(INPATH)$/lib $(SOLARLIB) $(STDSLO) \
-o $@ $(APP$(TNR)OBJS:s/.obj/.o/)\
`cat /dev/null $(APP$(TNR)LIBS) | sed s\#$(ROUT)\#$(OUT)\#g` \
$(APP_LINKTYPE) $(APP$(TNR)STDLIBS) $(STDLIB) > $(MISC)$/$(@:b).cmd
@+echo $(STDSLO) $(APP$(TNR)OBJS:s/.obj/.o/) \
`cat /dev/null $(APP$(TNR)LIBS) | sed s\#$(ROUT)\#$(OUT)\#g` | tr -s " " "\n" > $(MISC)$/$(@:b).list
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSAPP) -L$(PRJ)$/$(INPATH)$/lib $(SOLARLIB) -o $@ \
$(APP_LINKTYPE) $(APP$(TNR)STDLIBS) $(STDLIB) -filelist $(MISC)$/$(@:b).list > $(MISC)$/$(@:b).cmd
@cat $(MISC)$/$(@:b).cmd
@source $(MISC)$/$(@:b).cmd
@ls -l $@
.IF "$(OS)"=="MACOSX"
# This is a hack as libstatic and libcppuhelper have a circular dependency
.IF "$(PRJNAME)"=="cppuhelper"
@echo "------------------------------"
......@@ -114,6 +115,16 @@ $(APP$(TNR)TARGETN): $(APP$(TNR)OBJS) $(APP$(TNR)LIBS) \
@echo "Making: $@.app"
@create-bundle $@
.ENDIF # "$(TARGETTYPE)"=="GUI"
.ELSE # "$(OS)"=="MACOSX"
@+echo unx
@+-$(RM) $(MISC)$/$(@:b).cmd
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSAPP) -L$(PRJ)$/$(INPATH)$/lib $(SOLARLIB) $(STDSLO) \
-o $@ $(APP$(TNR)OBJS:s/.obj/.o/) \
`cat /dev/null $(APP$(TNR)LIBS) | sed s\#$(ROUT)\#$(OUT)\#g` \
$(APP_LINKTYPE) $(APP$(TNR)STDLIBS) $(STDLIB) > $(MISC)$/$(@:b).cmd
@cat $(MISC)$/$(@:b).cmd
@source $(MISC)$/$(@:b).cmd
@ls -l $@
.ENDIF # "$(OS)"=="MACOSX"
.ENDIF
.IF "$(GUI)"=="MAC"
......
......@@ -2,9 +2,9 @@
#
# $RCSfile: tg_shl.mk,v $
#
# $Revision: 1.28 $
# $Revision: 1.29 $
#
# last change: $Author: pluby $ $Date: 2001-03-03 17:27:42 $
# last change: $Author: pluby $ $Date: 2001-03-06 19:20:33 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
......@@ -238,8 +238,6 @@ $(SHL$(TNR)TARGETN) : \
$(USE_SHL$(TNR)VERSIONMAP)\
$(SHL$(TNR)RES)\
$(SHL$(TNR)VERSIONH)\
.IF "$(OS)"=="MACOSX"
.ENDIF
$(SHL$(TNR)DEPN)
@echo ------------------------------
@echo Making: $(SHL$(TNR)TARGETN)
......@@ -435,18 +433,17 @@ $(SHL$(TNR)TARGETN) : \
@+if ( ! -e $(SOLARLIBDIR)/so_locations ) touch $(SOLARLIBDIR)/so_locations
.ENDIF # "$(OS)"=="IRIX"
.ENDIF
.IF "$(OS)"=="MACOSX"
@+-$(RM) $(MISC)$/$(@:b).list
@+-$(RM) $(MISC)$/$(@:b).cmd
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) $(SHL$(TNR)VERSIONMAPPARA) -L$(PRJ)$/$(ROUT)$/lib $(SOLARLIB) $(STDSLO) $(SHL$(TNR)OBJS:s/.obj/.o/) \
$(SHL$(TNR)VERSIONOBJ) $(SHL$(TNR)DESCRIPTIONOBJ:s/.obj/.o/) -o $@ \
`cat /dev/null $(SHL$(TNR)LIBS) | tr -s " " "\n" | sed s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
$(SHL$(TNR)STDLIBS) $(SHL$(TNR)ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
@+echo $(STDSLO) $(SHL$(TNR)OBJS:s/.obj/.o/) \
$(SHL$(TNR)VERSIONOBJ) $(SHL$(TNR)DESCRIPTIONOBJ:s/.obj/.o/) \
`cat /dev/null $(SHL$(TNR)LIBS) | sed s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` | tr -s " " "\n" > $(MISC)$/$(@:b).list
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -L$(PRJ)$/$(ROUT)$/lib $(SOLARLIB) -o $@ \
$(SHL$(TNR)STDLIBS) $(SHL$(TNR)ARCHIVES) $(STDSHL) -filelist $(MISC)$/$(@:b).list $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
@cat $(MISC)$/$(@:b).cmd
@+source $(MISC)$/$(@:b).cmd
.IF "$(OS)"=="S390"
+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
.ENDIF
@ls -l $@
.IF "$(OS)"=="MACOSX"
# This is a hack as libstatic and libcppuhelper have a circular dependency
.IF "$(PRJNAME)"=="cppuhelper"
@echo "------------------------------"
......@@ -458,14 +455,25 @@ $(SHL$(TNR)TARGETN) : \
.ENDIF
@echo "Making: $@.framework"
@create-bundle $@
.ENDIF
.IF "$(UPDATER)"=="YES"
.IF "$(OS)"=="MACOSX"
+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB) $(SHL$(TNR)TARGETN).framework
.ELSE
+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL$(TNR)TARGETN)
.ENDIF
.ELSE # "$(OS)"=="MACOSX"
@+-$(RM) $(MISC)$/$(@:b).cmd
@+echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) $(SHL$(TNR)VERSIONMAPPARA) -L$(PRJ)$/$(ROUT)$/lib $(SOLARLIB) $(STDSLO) $(SHL$(TNR)OBJS:s/.obj/.o/) \
$(SHL$(TNR)VERSIONOBJ) $(SHL$(TNR)DESCRIPTIONOBJ:s/.obj/.o/) -o $@ \
`cat /dev/null $(SHL$(TNR)LIBS) | tr -s " " "\n" | sed s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \
$(SHL$(TNR)STDLIBS) $(SHL$(TNR)ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
@cat $(MISC)$/$(@:b).cmd
@+source $(MISC)$/$(@:b).cmd
.IF "$(OS)"=="S390"
+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
.ENDIF
@ls -l $@
.IF "$(UPDATER)"=="YES"
+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL$(TNR)TARGETN)
.ENDIF # "$(UPDATER)"=="YES"
.ENDIF # "$(OS)"=="MACOSX"
.ENDIF # "$(GUI)" == "UNX"
.IF "$(GUI)"=="MAC"
@+-$(RM) $@ $@.xSYM
......
......@@ -2,9 +2,9 @@
#
# $RCSfile: unxmacxp.mk,v $
#
# $Revision: 1.27 $
# $Revision: 1.28 $
#
# last change: $Author: pluby $ $Date: 2001-03-04 22:12:09 $
# last change: $Author: pluby $ $Date: 2001-03-06 19:20:33 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
......@@ -129,7 +129,7 @@ CFLAGSNOOPT=
.ENDIF
CFLAGSOUTOBJ=-o
SOLARVERSHLLIBS=$(shell -/bin/sh -c "ls $(SOLARLIBDIR)$/*$(DLLPOST) $(LB)$/*$(DLLPOST) $(MISC)$/*$(DLLPOST) 2>/dev/null")
SOLARVERSHLLIBS=$(shell -/bin/sh -c "ls $(SOLARLIBDIR)$/*$(DLLPOST) $(LB)$/*$(DLLPOST) $(MISC)$/*$(DLLPOST) 2>/dev/null | grep -E -v 'lib\w+static'")
.IF "$(STLPORT4)"!=""
SOLARVERSHLLIBS+=$(shell -/bin/sh -c "ls $(STLPORT4)$/lib$/*$(DLLPOST) 2>/dev/null")
.ENDIF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment