patch-build_sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. $OpenBSD: patch-build_sh,v 1.2 2015/07/20 03:13:47 jca Exp $
  2. --- build.sh.orig Sun Jul 19 21:11:34 2015
  3. +++ build.sh Sun Jul 19 21:12:18 2015
  4. @@ -18,10 +18,10 @@ BASIC_CFLAGS="-Wall -Wno-format -I/usr/local/include/
  5. BASIC_LDFLAGS="-L/usr/local/lib/ -L/opt/local/lib $LDFLAGS"
  6. -USE_CFLAGS="-fstack-protector-all -fPIE -D_FORTIFY_SOURCE=2 -g -ggdb \
  7. +USE_CFLAGS="-fstack-protector-all -D_FORTIFY_SOURCE=2 -g -ggdb \
  8. $BASIC_CFLAGS"
  9. -USE_LDFLAGS="-Wl,-z,relro -pie $BASIC_LDFLAGS"
  10. +USE_LDFLAGS="-Wl,-z,relro $BASIC_LDFLAGS"
  11. if [ "$OSTYPE" = "cygwin" ]; then
  12. USE_LIBS="-lwpcap $LIBS"
  13. @@ -81,8 +81,8 @@ if [ "$1" = "clean" -o "$1" = "publish" ]; then
  14. elif [ "$1" = "all" -o "$1" = "" ]; then
  15. echo "[+] Configuring production build."
  16. - BASIC_CFLAGS="$BASIC_CFLAGS -O3"
  17. - USE_CFLAGS="$USE_CFLAGS -O3"
  18. + #BASIC_CFLAGS="$BASIC_CFLAGS -O3"
  19. + #USE_CFLAGS="$USE_CFLAGS -O3"
  20. elif [ "$1" = "debug" ]; then
  21. @@ -318,7 +318,8 @@ echo -n "[*] Compiling $PROGNAME... "
  22. rm -f "$PROGNAME" || exit 1
  23. -$CC $USE_CFLAGS $USE_LDFLAGS "$PROGNAME.c" $OBJFILES -o "$PROGNAME" $USE_LIBS &>"$TMP.log"
  24. +echo $CC $USE_CFLAGS $USE_LDFLAGS "$PROGNAME.c" $OBJFILES -o "$PROGNAME" $USE_LIBS
  25. +$CC $USE_CFLAGS $USE_LDFLAGS "$PROGNAME.c" $OBJFILES -o "$PROGNAME" $USE_LIBS 2>&1 | tee "$TMP.log"
  26. if [ ! -x "$PROGNAME" ]; then