diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-05-07 08:31:14 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-05-07 08:31:14 +0000 |
commit | de1c0ade57b6ad65fa70b02703b5b679159f82d2 (patch) | |
tree | e1f857030ee8c66e7aef4c9a29f60ead2a994ddf /devel/ElectricFence | |
parent | ae94f7e2989997ab1c6613861720fd9041f2ebc6 (diff) |
- 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
Notes
Notes:
svn path=/head/; revision=108602
Diffstat (limited to 'devel/ElectricFence')
-rw-r--r-- | devel/ElectricFence/Makefile | 6 | ||||
-rw-r--r-- | devel/ElectricFence/files/patch-aa | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/devel/ElectricFence/Makefile b/devel/ElectricFence/Makefile index 4bf554d58725..ac1b1fbe2bc6 100644 --- a/devel/ElectricFence/Makefile +++ b/devel/ElectricFence/Makefile @@ -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 diff --git a/devel/ElectricFence/files/patch-aa b/devel/ElectricFence/files/patch-aa index 67852389ffa1..ac63fefe9b1d 100644 --- a/devel/ElectricFence/files/patch-aa +++ b/devel/ElectricFence/files/patch-aa @@ -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 |