summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/proot/files/proot-2.3.1-makefile.patch')
-rw-r--r--sys-apps/proot/files/proot-2.3.1-makefile.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/proot/files/proot-2.3.1-makefile.patch b/sys-apps/proot/files/proot-2.3.1-makefile.patch
new file mode 100644
index 000000000000..0014264bd44d
--- /dev/null
+++ b/sys-apps/proot/files/proot-2.3.1-makefile.patch
@@ -0,0 +1,26 @@
+--- src/GNUmakefile.orig 2013-01-23 14:18:01.057345491 +0400
++++ src/GNUmakefile 2013-01-23 14:18:39.489345191 +0400
+@@ -6,11 +6,11 @@
+ GIT = git
+ RM = rm
+ INSTALL = install
+-CC = gcc
++CC ?= gcc
+ LD = $(CC)
+ CPPFLAGS = -I. -I$(VPATH)
+-CFLAGS = -Wall -O2
+-LDFLAGS = -ltalloc
++CFLAGS ?= -Wall -O2
++LIBS = -ltalloc
+
+ OBJECTS = cli.o \
+ notice.o \
+@@ -97,7 +97,7 @@
+
+ SRC = $(dir $(firstword $(MAKEFILE_LIST)))
+ COMPILE = $($(quiet)CC) $(CPPFLAGS) $(CFLAGS) -MD -c $(SRC)$*.c -o $@
+-LINK = $($(quiet)LD) -o $@ $^ $(LDFLAGS)
++LINK = $($(quiet)LD) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+ proot: $(OBJECTS)
+ $(LINK)