ports/x11/bbrun/files/patch-Makefile
Tijl Coosemans 216b5a285f - Fix missing library problems when the linker enforces explicit linking
PR:		192062
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-08-26 14:06:08 +00:00

22 lines
653 B
Text

--- Makefile.orig 2004-02-11 05:57:17.000000000 +0100
+++ Makefile 2012-05-30 22:23:41.000000000 +0200
@@ -1,7 +1,6 @@
-CC = gcc
-LIBDIR = -L/usr/lib -L/usr/X11R6/lib
-LIBS = -lXpm `pkg-config --libs gtk+-2.0`
-CFLAGS = `pkg-config --cflags gtk+-2.0`
+LIBDIR =
+LIBS = ${LDFLAGS} `pkg-config --libs gtk+-2.0 x11 xext xpm`
+CFLAGS += `pkg-config --cflags gtk+-2.0 x11 xext xpm`
OBJS = bbrun.o \
../wmgeneral/wmgeneral.o \
@@ -11,7 +10,7 @@ OBJS = bbrun.o \
all: bbrun
.c.o:
- $(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS)
+ $(CC) -g -c -Wall $< -o $*.o $(CFLAGS)
bbrun: $(OBJS)
$(CC) -Wall -g -o bbrun $^ $(LIBDIR) $(LIBS)