fix build on mips64.
no bump, because !mips64 packages didn't change, and mips64 didn't package. ok sthen@ (MAINTAINER)
This commit is contained in:
parent
26a178bb72
commit
5116bee878
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2007/09/04 10:33:19 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2008/01/30 14:34:01 jasper Exp $
|
||||
|
||||
COMMENT= gateway to send and receive SMS through GSM mobile phones
|
||||
|
||||
@ -27,6 +27,13 @@ NO_REGRESS= Yes
|
||||
WRKDIST= ${WRKDIR}/smstools3
|
||||
WRKSRC= ${WRKDIST}/src
|
||||
|
||||
# gcc 3.3.5 internal compiler error
|
||||
.if ${MACHINE_ARCH} == "mips64"
|
||||
EXTRA_CFLAGS= -O0
|
||||
.endif
|
||||
|
||||
MAKE_FLAGS+= EXTRA_CFLAGS=${EXTRA_CFLAGS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/smsd ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIST}/scripts/{sendsms,sms2html} \
|
||||
|
15
comms/smstools/patches/patch-src_Makefile
Normal file
15
comms/smstools/patches/patch-src_Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_Makefile,v 1.1 2008/01/30 14:34:01 jasper Exp $
|
||||
--- src/Makefile.orig Mon Jan 28 23:41:42 2008
|
||||
+++ src/Makefile Mon Jan 28 23:43:26 2008
|
||||
@@ -21,9 +21,9 @@ all: smsd
|
||||
|
||||
smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o
|
||||
ifneq (,$(findstring NOSTATS,$(CFLAGS)))
|
||||
- $(CC) $(CFLAGS) -o $@ $^
|
||||
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^
|
||||
else
|
||||
- $(CC) `mm-config --cflags` $(CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
|
||||
+ $(CC) `mm-config --cflags` $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
|
||||
@echo "(Please ignore warning about tempnam -- it is used in a safe way)"
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user