$NetBSD: patch-ah,v 1.4 2000/12/15 03:13:06 garbled Exp $ --- Makefile.in.orig Thu Dec 14 18:53:56 2000 +++ Makefile.in Thu Dec 14 19:01:56 2000 @@ -427,7 +427,7 @@ Libs/libclanPNG.so: Libs/libclanCore.so $(OBJF_LIB_PNG) @echo "Building Libs/libclanPNG.so" - @$(LINK_COMMAND) -Wl,-soname=libclanPNG.so.$(D_VERSION_MAJOR) -o Libs/libclanPNG.so.$(D_VERSION_MINOR) $(OBJF_LIB_PNG) -L Libs -lclanCore -lpng + @$(LINK_COMMAND) -Wl,-R$(LOCALBASE)/lib -Wl,-soname=libclanPNG.so.$(D_VERSION_MAJOR) -o Libs/libclanPNG.so.$(D_VERSION_MINOR) $(OBJF_LIB_PNG) -L Libs -lclanCore -lpng @ln -s -f libclanPNG.so.$(D_VERSION_MINOR) Libs/libclanPNG.so.$(D_VERSION_MAJOR) @ln -s -f libclanPNG.so.$(D_VERSION_MAJOR) Libs/libclanPNG.so @@ -437,7 +437,7 @@ Libs/libclan-sound.so.$(D_VERSION_MINOR): $(OBJF_SOUND_CLANSOUND) @echo "Building sound target" - @$(LINK_COMMAND) -o Libs/libclan-sound.so.$(D_VERSION_MINOR) $(OBJF_SOUND_CLANSOUND) + @$(LINK_COMMAND) -lossaudio -o Libs/libclan-sound.so.$(D_VERSION_MINOR) $(OBJF_SOUND_CLANSOUND) Libs/libclan-input-tty.so.$(D_VERSION_MINOR): $(OBJF_INPUT_TTY) @echo "Building tty input target" @@ -445,7 +445,7 @@ Libs/libclan-display-x11.so.$(D_VERSION_MINOR): $(OBJF_DISP_X11) @echo "Building x11 target" - @$(LINK_COMMAND) -o Libs/libclan-display-x11.so.$(D_VERSION_MINOR) $(OBJF_DISP_X11) @x_libraries@ + @$(LINK_COMMAND) -Wl,-R$(X11BASE)/lib -o Libs/libclan-display-x11.so.$(D_VERSION_MINOR) $(OBJF_DISP_X11) @x_libraries@ Libs/libclan-display-ptc.so.$(D_VERSION_MINOR): $(OBJF_DISP_PTC) Libs/libclan-display-x11.so.$(D_VERSION_MINOR) @echo "Building openptc target" @@ -456,7 +456,7 @@ Libs/libclan-display-glx.so.$(D_VERSION_MINOR): $(OBJF_DISP_GLX) Libs/libclan-display-x11.so.$(D_VERSION_MINOR) @echo "Building glx target" @ln -s -f Libs/libclan-display-x11.so.$(D_VERSION_MINOR) . - @$(LINK_COMMAND) -L Libs -Wl,-rpath,$(TARGET_PREFIX) libclan-display-x11.so.$(D_VERSION_MINOR) -o Libs/libclan-display-glx.so.$(D_VERSION_MINOR) $(OBJF_DISP_GLX) @x_libraries@ -lGL -lGLU + @$(LINK_COMMAND) -L Libs -Wl,-R$(X11BASE)/lib libclan-display-x11.so.$(D_VERSION_MINOR) -o Libs/libclan-display-glx.so.$(D_VERSION_MINOR) $(OBJF_DISP_GLX) @x_libraries@ -lGL -lGLU @rm -f libclan-display-x11.so.$(D_VERSION_MINOR) Libs/libclan-display-ggi.so.$(D_VERSION_MINOR): $(OBJF_DISP_GGI)