From 1511a5bd89a618481933a7edbc470f1599d329d1 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 28 Sep 1998 02:04:40 +0000 Subject: Fix build for ELF. --- games/KnightCap/files/patch-aa | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'games/KnightCap') diff --git a/games/KnightCap/files/patch-aa b/games/KnightCap/files/patch-aa index 0cf23bfaaa9f..b1b49b7ed3aa 100644 --- a/games/KnightCap/files/patch-aa +++ b/games/KnightCap/files/patch-aa @@ -1,5 +1,5 @@ ---- Makefile Wed Mar 11 21:51:57 1998 -+++ /home/andy/tmp/wrk/Makefile Sun May 10 09:54:13 1998 +--- Makefile.orig Wed Mar 11 15:51:57 1998 ++++ Makefile Sun Sep 27 11:09:04 1998 @@ -2,11 +2,11 @@ # what C compiler? It better be Ansi-C. Use gcc if you have it. @@ -14,7 +14,7 @@ # If you don't have gcc then perhaps try this instead. You only need # the null definition for inline if your C compiler doesn't know about -@@ -21,13 +21,10 @@ +@@ -21,13 +21,13 @@ # display (or you don't have OpenGL and Glut libraries) # If you do have these libs then make sure the first three # lines point at the right places @@ -28,6 +28,9 @@ +GLUT_LIBS = -L$(X11BASE)/lib -lglut +MESA_LIBS = -L$(X11BASE)/lib -lMesaGLU -lMesaGL -lm +XLIBS = -L$(X11BASE)/lib -lXmu -lXt -lXext -lX11 -lXi ++.if $(PORTOBJFORMAT) == "elf" ++XLIBS+= -Wl,-rpath,$(X11BASE)/lib ++.endif +DISPLAYFLAGS = -I$(X11BASE)/include -DRENDERED_DISPLAY=1 # comment out the following line if you don't want KnightCap's -- cgit v1.2.3