summaryrefslogtreecommitdiff
blob: 57e6ef7791cf6aa96dd12093bcd525d3cb96e897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- STLport-5.1.5.orig/build/Makefiles/gmake/lib/gcc.mak
+++ STLport-5.1.5/build/Makefiles/gmake/lib/gcc.mak
@@ -93,6 +93,9 @@
 #START_A_OBJ := $(shell for o in crt{i,beginT}.o; do ${CXX} -print-file-name=$$o; done)
 END_OBJ := $(shell for o in crtendS.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
 STDLIBS := -Wl,--whole-archive -lsupc++ ${_LGCC_EH} -Wl,--no-whole-archive ${_LGCC_S} -lpthread -lc -lm
+ifneq (,$(findstring $(M_ARCH),hppa parisc64 parisc))
+STDLIBS += -lgcc
+endif
 endif
 ifeq ($(OSNAME),openbsd)
 START_OBJ := $(shell for o in crtbeginS.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
--- STLport-5.1.5.orig/build/Makefiles/gmake/app/gcc.mak
+++ STLport-5.1.5/build/Makefiles/gmake/app/gcc.mak
@@ -107,6 +107,9 @@
 START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
 END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
 STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
+ifneq (,$(findstring $(M_ARCH),hppa parisc64 parisc))
+STDLIBS += -lgcc
+endif
 endif
 ifeq ($(OSNAME),openbsd)
 START_OBJ := $(shell for o in crt{0,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)