Browse Source

Changes to allow debuild to work

Added in missing CFlags and INCLUDES
-fPIC -O3
The readme might need to change as well
pull/32/head
ovadbar 4 years ago
committed by GitHub
parent
commit
7df938e150
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      debian/rules

+ 5
- 4
debian/rules View File

@ -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

Loading…
Cancel
Save