summaryrefslogtreecommitdiff
path: root/net/csocks/files/patch-Makefile
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-04-11 21:54:45 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-04-11 21:54:45 +0000
commitffa656226c0bfdc610ee5ac06df05167fcc9ef1d (patch)
treed2b9a5c2303c443870be3f63be564ca2f3c61de3 /net/csocks/files/patch-Makefile
parentAllow an alternative install prefix to be specified with (diff)
- Support staging
- Use proper INSTALL_* macros instead of CP - Respect CC and therefore fix build with clang - Respect CFLAGS
Diffstat (limited to 'net/csocks/files/patch-Makefile')
-rw-r--r--net/csocks/files/patch-Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/csocks/files/patch-Makefile b/net/csocks/files/patch-Makefile
new file mode 100644
index 000000000000..eb2f6dd09008
--- /dev/null
+++ b/net/csocks/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig 2014-04-11 23:48:26.646982600 +0200
++++ Makefile 2014-04-11 23:49:46.629977600 +0200
+@@ -1,9 +1,9 @@
+ # Compiler/Linker/dynamic linker
+-CC = gcc
+-LD = gcc
++CC ?= gcc
++LD = $(CC)
+
+ # flags to compile object files that can be used in a dynamic library
+-CFLAGS = -fPIC -Wall -g -c -O2 -fno-strict-aliasing -pipe -Wall -std=c99 -D'CSOCKS_CONF="/usr/local/etc/csocks.conf"'
++CFLAGS += -fPIC -c -std=c99 -D'CSOCKS_CONF="$(PREFIX)/etc/csocks.conf"'
+ # on some platforms, use '-fpic' instead.
+
+ # Flags to create a dynamic library.