Index: hsc-1.0/configure.in =================================================================== --- hsc-1.0.orig/configure.in +++ hsc-1.0/configure.in @@ -46,12 +46,12 @@ case $host in ;; esac echo "Configuring for $SYSTEM" -CFLAGS="-Wall -pedantic" +CFLAGS="$CFLAGS -Wall -pedantic" AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Compile programs with GDB support and debugging output]), [CFLAGS="$CFLAGS -ggdb -g3 -DDEBUG"; REGEXDEBUG="regex/printchar.o"], - CFLAGS="$CFLAGS -fomit-frame-pointer -Os") + CFLAGS="$CFLAGS") AC_ARG_ENABLE(efence, AS_HELP_STRING([--enable-efence],[Link with efence library for memory debugging]), CFLAGS="$CFLAGS -lefence") Index: hsc-1.0/src/regex/Makefile.in =================================================================== --- hsc-1.0.orig/src/regex/Makefile.in +++ hsc-1.0/src/regex/Makefile.in @@ -29,7 +29,7 @@ version = 0.12 CPPFLAGS = # Likewise, you can override CFLAGS to optimize, use -Wall, etc. -CFLAGS = -g +#CFLAGS = -g # Ditto for LDFLAGS and LOADLIBES. LDFLAGS = Index: hsc-1.0/src/Makefile.in =================================================================== --- hsc-1.0.orig/src/Makefile.in +++ hsc-1.0/src/Makefile.in @@ -27,7 +27,7 @@ DATADIR=@datadir@ CFLAGS = @CFLAGS@ -D@SYSTEM@ -I. COMP = @CC@ -o $@ $(CFLAGS) -LINK = @CC@ -o $@ $(CFLAGS) +LINK = @CC@ -o $@ $(CFLAGS) $(LDFLAGS) LINKLIBS= @LINKLIBS@ MOVE = mv COPY = cp