$OpenBSD: patch-src_xmms_Makefile,v 1.2 2006/07/13 13:35:16 espie Exp $ --- src/xmms/Makefile.orig Wed Jan 17 02:29:41 2001 +++ src/xmms/Makefile Wed Jul 12 17:10:42 2006 @@ -1,7 +1,7 @@ # Extended Module Player src/xmms/Makefile # $Id: patch-src_xmms_Makefile,v 1.2 2006/07/13 13:35:16 espie Exp $ -XCFLAGS = -I../include -DVERSION=\"$(VERSION)\" `xmms-config --cflags` -DXMMS_PLUGIN #-DDEBUG +XCFLAGS = -I../include -DVERSION=\"$(VERSION)\" `xmms-config --cflags` -DXMMS_PLUGIN -fPIC #-DDEBUG DFILES = Makefile README xmp-plugin.h $(OBJS:.o=.c) CFILES = xmp-plugin.so @@ -17,7 +17,7 @@ driver.c: ln -sf ../player/driver.c . plugin: $(OBJS) $(DYNDRV) - $(LD) -shared -o xmp-plugin.so $(OBJS) -L../../lib/ -lxmp + $(LD) -shared -fPIC -o xmp-plugin.so $(OBJS) -L../../lib/ -lxmp dyndrv: make -C ../../lib shared