- Unbreak on non-std hardware: Use -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS

on all archs except alpha.
- Pass CC through while here.

PR:		ports/65878
Submitted by:	Tim Robbins
This commit is contained in:
Volker Stolz 2004-05-07 08:31:14 +00:00
parent ae94f7e298
commit de1c0ade57
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108602
2 changed files with 3 additions and 5 deletions

View File

@ -17,14 +17,12 @@ DISTNAME= ElectricFence-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Debugging malloc() that uses the VM hardware to detect buffer overruns
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
BROKEN= "Does not compile on ${MACHINE_ARCH}"
.endif
INSTALLS_SHLIB= yes
CFLAGS+= -D__USE_BSD
MAN3= efence.3
MAKE_ARGS= CC="${CC}"
do-install:
${INSTALL_DATA} ${WRKSRC}/libefence.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libefence.so.0.0 ${PREFIX}/lib/libefence.so.0

View File

@ -6,7 +6,7 @@
-LIBS= -lpthread
+#CFLAGS= -g -DUSE_SEMAPHORE $(PIC)
+CFLAGS+= -g $(PIC)
+.if ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
+CFLAGS+= -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
+.endif
+#CFLAGS+= -pthread