A new user interface for you! Read more...

File sfml-1.6-underlinking.patch of Package sfml

Index: src/SFML/Audio/Makefile
===================================================================
--- src/SFML/Audio/Makefile.orig
+++ src/SFML/Audio/Makefile
@@ -19,7 +19,7 @@ libsfml-audio-s.a: $(OBJ) $(OBJVORBIS)
 	$(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJVORBIS)
 
 libsfml-audio.so: $(OBJ) $(OBJVORBIS)
-	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal
+	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal $(LIBPATH)/libsfml-system.so.$(VERSION)
 
 $(OBJ): %.o: %.cpp
 	$(CPP) -o $@ -c $< $(CFLAGS)
Index: src/SFML/Graphics/Makefile
===================================================================
--- src/SFML/Graphics/Makefile.orig
+++ src/SFML/Graphics/Makefile
@@ -27,7 +27,7 @@ libsfml-graphics-s.a: $(OBJ) $(OBJGLEW)
 	$(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB)
 
 libsfml-graphics.so: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB)
-	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -lfreetype -lX11 -lGL -lpng -ljpeg -lGLEW -lSOIL
+	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -lfreetype -lX11 -lGL -lpng -ljpeg -lGLEW -lSOIL $(LIBPATH)/libsfml-system.so.$(VERSION) $(LIBPATH)/libsfml-window.so.$(VERSION)
 
 $(OBJ): %.o: %.cpp
 	$(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2
Index: src/SFML/Window/Makefile
===================================================================
--- src/SFML/Window/Makefile.orig
+++ src/SFML/Window/Makefile
@@ -18,7 +18,7 @@ libsfml-window-s.a: $(OBJ)
 	$(AR) $(ARFLAGS) $(LIBNAME) $(OBJ)
 
 libsfml-window.so: $(OBJ)
-	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL
+	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL $(LIBPATH)/libsfml-system.so.$(VERSION)
 
 $(OBJ): %.o: %.cpp
 	$(CPP) -o $@ -c $< $(CFLAGS)
Index: src/SFML/Makefile
===================================================================
--- src/SFML/Makefile.orig
+++ src/SFML/Makefile
@@ -33,11 +33,15 @@ export DESTINCDIR = $(DESTDIR)/include
 
 all: sfml-system sfml-window sfml-network sfml-graphics sfml-audio
 
+$(LIBPATH)/libsfml-system.so.$(VERSION): sfml-system
+
+$(LIBPATH)/libsfml-window.so.$(VERSION): sfml-window
+
 sfml-system:
 	@(mkdir -p ../../lib)
 	@(cd ./System && $(MAKE))
 
-sfml-window:
+sfml-window: $(LIBPATH)/libsfml-system.so.$(VERSION)
 	@(mkdir -p ../../lib)
 	@(cd ./Window && $(MAKE))
 
@@ -45,11 +49,11 @@ sfml-network:
 	@(mkdir -p ../../lib)
 	@(cd ./Network && $(MAKE))
 
-sfml-graphics:
+sfml-graphics: $(LIBPATH)/libsfml-system.so.$(VERSION) $(LIBPATH)/libsfml-window.so.$(VERSION)
 	@(mkdir -p ../../lib)
 	@(cd ./Graphics && $(MAKE))
 
-sfml-audio:
+sfml-audio: $(LIBPATH)/libsfml-system.so.$(VERSION)
 	@(mkdir -p ../../lib)
 	@(cd ./Audio && $(MAKE))