Link testlib against libm and libgcc_s so that all the required symbols
are available for all arches. Some arches (arm and hppa) use SJLJ expections which requires stuff from libgcc_s and some (hppa) always do immediate binding - libstdc++ requires libm. Fixes PR 33294 and regress/usr.bin/rtld/dlopen on hppa with the soon to be committed unaligned reloc fix.
This commit is contained in:
parent
fef6221a07
commit
6d031b3abb
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.7 2003/09/03 20:53:16 drochner Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2006/10/16 09:21:55 skrll Exp $
|
||||
|
||||
NOPROFILE= yes
|
||||
|
||||
|
@ -11,7 +11,7 @@ CLEANFILES+= ${TESTLIB}
|
|||
SHLIB_MAJOR= 1
|
||||
SHLIB_MINOR= 0
|
||||
#CXXFLAGS+= -fno-rtti
|
||||
LDADD+= -lstdc++
|
||||
LDADD+= -lstdc++ -lm -lgcc_s
|
||||
|
||||
.if (${MACHINE_ARCH} == "i386")
|
||||
all realall: ${TESTLIB}
|
||||
|
|
Loading…
Reference in New Issue