summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-ao
blob: cab2c7373cfb3adbbff3add7fd1ac4f7dc81fd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ao,v 1.3 2001/03/26 22:51:39 skrll Exp $

--- get/getx11/makefile.src.orig	Wed Jul 15 21:31:20 1992
+++ get/getx11/makefile.src
@@ -16,7 +16,7 @@
 #endif
 
 # Point to X11 include directory, if it's in a strange place
-DIRFLAGS = $(INCX11)
+DIRFLAGS = $(INCX11) -Dunix
 
 # -lX11 is X11 support library
 DIRLIBS = $(LIBX11) $(LIBEXT) -lm
@@ -47,8 +47,7 @@
 
 # getx11 - read RLE file to X11 display
 getx11.out: $(X_O_FILES) 
-	${CC} $(CFLAGS) $(X_O_FILES) $(LIBS) -o getx11.new
-	mv getx11.new getx11.out
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${X_O_FILES} -o getx11.out ../../lib/librle.la -lm -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXext -lX11
 
 # Make prototypes.h and fn_decls.h.  Only happens if HAVE_CPROTO is defined.
 # Also assumes that the C preprocessor is /lib/cpp.