openbsd-ports/telephony/appkonference/patches/patch-Makefile
sthen 249f7be968 update and patch appkonference to work with asterisk 1.8.
spotted by and diff ok with naddy@
2011-01-24 08:23:27 +00:00

40 lines
1.6 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2011/01/24 08:23:27 sthen Exp $
--- konference/Makefile.orig Wed Aug 18 17:02:38 2010
+++ konference/Makefile Sat Jan 22 20:19:21 2011
@@ -66,7 +66,7 @@ INSTALL = install
INCLUDE = -I$(ASTERISK_INCLUDE_DIR)
DEBUG := -g
-CFLAGS = -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP $(DEBUG)
+CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP $(DEBUG)
CPPFLAGS = $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE -DRELEASE=\"$(RELEASE)\"
#CFLAGS += -O2
#CFLAGS += -O3 -march=pentium3 -msse -mfpmath=sse,387 -ffast-math
@@ -78,7 +78,7 @@ CPPFLAGS = $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE -DREL
# adding -msse -mfpmath=sse has little effect.
#CFLAGS += -O3 -msse -mfpmath=sse
#CFLAGS += $(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
-CFLAGS += $(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
+CFLAGS += $(shell if uname -m | grep -qE '(arm|ppc)'; then echo "-fsigned-char"; fi)
CFLAGS += -fPIC
CPPFLAGS += -DCRYPTO
CPPFLAGS += -DCHANNEL_TABLE_SIZE=$(CHANNEL_TABLE_SIZE)
@@ -137,7 +137,7 @@ OSARCH=$(shell uname -s)
ifeq (${OSARCH},Darwin)
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
else
-SOLINK=-shared -Xlinker -x
+SOLINK=-shared -fPIC -Xlinker -x
endif
DEPS += $(subst .o,.d,$(OBJS))
@@ -157,7 +157,7 @@ distclean: clean
$(RM) $(TARGET)
$(TARGET): $(OBJS)
- $(CC) -pg $(SOLINK) -o $@ $(OBJS)
+ $(CC) $(SOLINK) -o $@ $(OBJS)
vad_test: vad_test.o libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
$(CC) $(PROFILE) -o $@ $^ -lm