aboutsummaryrefslogtreecommitdiffstats
path: root/cad/sis/files/patch-ab
blob: 4dcf7b4945679284489040dcf5f67a24a5227be7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- xsis/Makefile.orig  Fri Mar 18 05:11:04 1994
+++ xsis/Makefile   Fri Aug  4 00:42:30 2000
@@ -40,11 +40,14 @@
 
 LIBS   = $(SIS)/lib/libsis.a
 LIBS2  = -L$(X11)/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
+.if $(PORTOBJFORMAT) == "elf"
+LIBS2  +=-Wl,-rpath,$(X11)/lib
+.endif
 
 # ---------------------------------------------------------------------------
 
-CC = cc
-CFLAGS = -O $(INCLUDE)
+CC ?= cc
+CFLAGS += $(INCLUDE)
 LDFLAGS    =
 
 $(TARGET): $(OBJ) $(LIBS)