diff options
author | steve <steve@FreeBSD.org> | 1998-10-04 12:05:09 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-10-04 12:05:09 +0800 |
commit | ff3673af32574c1405b811e7524b1951a9c33c96 (patch) | |
tree | eed937b25f6567bd90569c041f65eff1e30a1fa2 /x11-wm/wm2 | |
parent | 14575801b82609801a0e110022d551f98502bf9d (diff) | |
download | freebsd-ports-gnome-ff3673af32574c1405b811e7524b1951a9c33c96.tar.gz freebsd-ports-gnome-ff3673af32574c1405b811e7524b1951a9c33c96.tar.zst freebsd-ports-gnome-ff3673af32574c1405b811e7524b1951a9c33c96.zip |
Fix build for ELF.
Diffstat (limited to 'x11-wm/wm2')
-rw-r--r-- | x11-wm/wm2/files/patch-aa | 69 |
1 files changed, 27 insertions, 42 deletions
diff --git a/x11-wm/wm2/files/patch-aa b/x11-wm/wm2/files/patch-aa index ae615aeff8fd..9cd6f07f2cf6 100644 --- a/x11-wm/wm2/files/patch-aa +++ b/x11-wm/wm2/files/patch-aa @@ -1,42 +1,27 @@ -*** Makefile.orig Thu Jan 16 21:20:29 1997 ---- Makefile Sat Mar 1 20:56:39 1997 -*************** -*** 1,10 **** - - # if you want pixmaps you'll need Xpm, so add -lXpm to the next line -! LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm - - CC = gcc - CCC = gcc -! CFLAGS = -O2 - OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o listimpl.o - - .c.o: ---- 1,10 ---- - - # if you want pixmaps you'll need Xpm, so add -lXpm to the next line -! LIBS = -L/usr/X11R6/lib -lXext -lX11 -lXmu -lm - - CC = gcc - CCC = gcc -! CFLAGS += -O2 -I/usr/X11R6/include - OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o listimpl.o - - .c.o: -*************** -*** 14,20 **** - $(CCC) -c $(CFLAGS) $< - - wm2: $(OBJECTS) -! mv -f wm2 wm2.old >& /dev/null || true - $(CCC) -o wm2 $(OBJECTS) $(LIBS) - - depend: ---- 14,20 ---- - $(CCC) -c $(CFLAGS) $< - - wm2: $(OBJECTS) -! mv -f wm2 wm2.old 2> /dev/null || true - $(CCC) -o wm2 $(OBJECTS) $(LIBS) - - depend: +--- Makefile.orig Thu Jan 16 06:20:29 1997 ++++ Makefile Sat Oct 3 20:01:54 1998 +@@ -1,10 +1,13 @@ + + # if you want pixmaps you'll need Xpm, so add -lXpm to the next line +-LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm ++LIBS = -L$(X11BASE)/lib -lXext -lX11 -lXmu -lm ++.if $(PORTOBJFORMAT) == "elf" ++LIBS += -Wl,-rpath,$(X11BASE)/lib ++.endif + + CC = gcc + CCC = gcc +-CFLAGS = -O2 ++CFLAGS += -O2 -I$(X11BASE)/include + OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o listimpl.o + + .c.o: +@@ -14,7 +17,7 @@ + $(CCC) -c $(CFLAGS) $< + + wm2: $(OBJECTS) +- mv -f wm2 wm2.old >& /dev/null || true ++ mv -f wm2 wm2.old 2> /dev/null || true + $(CCC) -o wm2 $(OBJECTS) $(LIBS) + + depend: |