From 7df938e150a2f8a13f9cd36e783e0e8fbcb1af23 Mon Sep 17 00:00:00 2001 From: ovadbar Date: Tue, 28 Dec 2021 20:57:39 -0800 Subject: [PATCH] Changes to allow debuild to work Added in missing CFlags and INCLUDES -fPIC -O3 The readme might need to change as well --- debian/rules | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index 33e9e2f..b154611 100755 --- a/debian/rules +++ b/debian/rules @@ -1,14 +1,16 @@ #!/usr/bin/make -f +export FS_INCLUDES=/usr/include/freeswitch DH_VERBOSE = 1 -export ADD_CFLAGS=-fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic +export INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES) +export ADD_CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic $(INCLUDES) export ADD_LIBS=-lm -lbcg729 # main packaging script based on dh7 syntax %: - dh $@ + dh $@ .stamp-build: - fsxs compile --add-cflags="$(ADD_CFLAGS)" mod_bcg729.c + fsxs compile --add-cflags="$(ADD_CFLAGS)" mod_bcg729.c fsxs link --add-libs="$(ADD_LIBS)" mod_bcg729.so mod_bcg729.o override_dh_auto_build: .stamp-build @@ -19,4 +21,3 @@ override_dh_auto_install: override_dh_auto_clean: rm -f mod_bcg729.o rm -f mod_bcg729.so -