diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-02-08 11:25:33 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-02-08 11:25:33 +0000 |
commit | d5d6917e5ca742fb62ac62b7ed5064a255fbb270 (patch) | |
tree | 94fcd888e185afb2a5a59ba937b37106440d7cf9 /x11-misc/grabc/files | |
parent | Respect CFLAGS (bug #241552), LDFLAGS, CC. Do not strip (bug #241488). Instal... (diff) | |
download | historical-d5d6917e5ca742fb62ac62b7ed5064a255fbb270.tar.gz historical-d5d6917e5ca742fb62ac62b7ed5064a255fbb270.tar.bz2 historical-d5d6917e5ca742fb62ac62b7ed5064a255fbb270.zip |
Respect CC, LDFLAGS, CFLAGS (bug #241544). Use pkg-config.
Package-Manager: portage-2.2_rc62/cvs/Linux i686
Diffstat (limited to 'x11-misc/grabc/files')
-rw-r--r-- | x11-misc/grabc/files/grabc-1.1-makefile.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/x11-misc/grabc/files/grabc-1.1-makefile.patch b/x11-misc/grabc/files/grabc-1.1-makefile.patch new file mode 100644 index 000000000000..4815ae5675c5 --- /dev/null +++ b/x11-misc/grabc/files/grabc-1.1-makefile.patch @@ -0,0 +1,37 @@ +--- grabc1.1/Makefile.org 1997-03-17 06:51:39.000000000 +0100 ++++ grabc1.1/Makefile 2010-02-08 12:18:34.000000000 +0100 +@@ -2,17 +2,15 @@ + # Makefile automatically generated by genmake 1.0, Mar-16-97 + # genmake 1.0 by ma_muquit@fccc.edu, RCS + ## +-CC= cc + DEFS= + PROGNAME= grabc +-LIBS= -L/usr/X11R6/lib -lX11 ++LIBS= $(shell pkg-config --libs x11) + + INCLUDES= -I. + +-# replace -O with -g in order to debug ++# replace -O2 -pipe -Wall -march=athlon-xp with -g in order to debug + + DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1 +-CFLAGS= -O $(DEFINES) + + SRCS = grabc.c + +@@ -20,12 +18,12 @@ + + .c.o: + rm -f $@ +- $(CC) $(CFLAGS) -c $*.c ++ $(CC) $(CFLAGS) $(DEFINES) -c $*.c + + all: $(PROGNAME) + + $(PROGNAME) : $(OBJS) +- $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) + + clean: + rm -f $(OBJS) $(PROGNAME) core |