--- a/patches/libgsm-01-makefile.diff Sun Oct 23 09:46:59 2011 +0000
+++ b/patches/libgsm-01-makefile.diff Sun Oct 23 09:48:48 2011 +0000
@@ -1,5 +1,5 @@
---- gsm-1.0-pl12/Makefile.orig 2007-08-01 13:16:42.866319697 +0700
-+++ gsm-1.0-pl12/Makefile 2007-08-01 13:50:03.271259284 +0700
+--- gsm-1.0-pl13/Makefile Sun Oct 23 11:19:08 2011
++++ gsm-1.0-pl13/Makefile Sun Oct 23 11:16:48 2011
@@ -30,6 +30,8 @@
######### define this, and read about the GSM_OPT_WAV49 option in the
######### manual page on gsm_option(3).
@@ -20,7 +20,7 @@
LD = $(CC)
-@@ -71,17 +73,17 @@
+@@ -71,7 +73,7 @@
# Leave INSTALL_ROOT empty (or just don't execute "make install") to
# not install gsm and toast outside of this directory.
@@ -29,6 +29,7 @@
# Where do you want to install the gsm library, header file, and manpages?
#
+@@ -78,10 +80,10 @@
# Leave GSM_INSTALL_ROOT empty to not install the GSM library outside of
# this directory.
@@ -92,7 +93,7 @@
$(GSM_INSTALL_INC)/gsm.h \
$(GSM_INSTALL_MAN)/gsm.3 \
$(GSM_INSTALL_MAN)/gsm_explode.3 \
-@@ -301,8 +303,7 @@
+@@ -301,14 +303,13 @@
$(LIBGSM): $(LIB) $(GSM_OBJECTS)
-rm $(RMFLAGS) $(LIBGSM)
@@ -102,6 +103,13 @@
# Toast, Untoast and Tcat -- the compress-like frontends to gsm.
+
+ $(TOAST): $(BIN) $(TOAST_OBJECTS) $(LIBGSM)
+- $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSM) $(LDLIB)
++ $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) -lgsm -L./lib $(LDLIB)
+
+ $(UNTOAST): $(BIN) $(TOAST)
+ -rm $(RMFLAGS) $(UNTOAST)
@@ -393,9 +394,10 @@
cp $? $@
chmod 444 $@