summaryrefslogtreecommitdiff
path: root/recipes/libgsm/libgsm-1.0.10/libgsm_patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/libgsm/libgsm-1.0.10/libgsm_patch')
-rw-r--r--recipes/libgsm/libgsm-1.0.10/libgsm_patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/libgsm/libgsm-1.0.10/libgsm_patch b/recipes/libgsm/libgsm-1.0.10/libgsm_patch
new file mode 100644
index 0000000000..854f2fc8cc
--- /dev/null
+++ b/recipes/libgsm/libgsm-1.0.10/libgsm_patch
@@ -0,0 +1,34 @@
+--- Makefile 1996-07-02 16:36:06.000000000 +0200
++++ Makefile.new 2004-09-16 13:12:28.000000000 +0200
+@@ -80,7 +80,7 @@
+
+ GSM_INSTALL_ROOT = $(INSTALL_ROOT)
+ GSM_INSTALL_LIB = $(GSM_INSTALL_ROOT)/lib
+-GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc
++GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include/gsm
+ GSM_INSTALL_MAN = $(GSM_INSTALL_ROOT)/man/man3
+
+
+@@ -131,6 +131,7 @@
+
+ CFLAGS = $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) $(LTP_CUT) \
+ $(WAV49) $(CCINC) -I$(INC)
++CFLAGS_append = -I $(INC) -c
+ ######### It's $(CC) $(CFLAGS)
+
+ LFLAGS = $(LDFLAGS) $(LDINC)
+@@ -274,12 +275,12 @@
+ # Default rules
+
+ .c.o:
+- $(CC) $(CFLAGS) $?
++ $(CC) $(CFLAGS_append) $?
+ @-mv `$(BASENAME) $@` $@ > /dev/null 2>&1
+
+ # Target rules
+
+-all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST)
++all: $(LIBGSM)
+ @-echo $(ROOT): Done.
+
+ tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result