plymouth-lite: link libm/libz static

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stefan Saraev 2014-04-26 18:29:36 +03:00 committed by Stephan Raue
parent 76b86c6056
commit 2a5c2bef16
2 changed files with 19 additions and 1 deletions

View File

@ -23,7 +23,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.meego.com"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_INIT="toolchain gcc:init zlib:init libpng"
PKG_DEPENDS_INIT="toolchain gcc:init libpng"
PKG_PRIORITY="optional"
PKG_SECTION="tools"
PKG_SHORTDESC="plymouth-lite: Boot splash screen based on Fedora's Plymouth code"

View File

@ -0,0 +1,18 @@
diff --git a/Makefile b/Makefile
index 6ab27ef..17d12a0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
ply-image: ply-image.c ply-frame-buffer.c Makefile
- $(CC) $(CFLAGS) `pkg-config --cflags libpng` ply-image.c ply-frame-buffer.c -o ply-image -lm `pkg-config --libs libpng` -lm -lz
+ $(CC) $(CFLAGS) -Wl,-Bstatic `pkg-config --cflags libpng` ply-image.c ply-frame-buffer.c -o ply-image -lm `pkg-config --libs libpng` -lm -lz -Wl,-Bdynamic -lc $(LDFLAGS)
clean:
rm -f ply-image *~ gmon.out
@@ -11,4 +11,3 @@ install: ply-image
cp ply-image $(DESTDIR)/usr/bin
cp splash.png $(DESTDIR)/usr/share/plymouth/splash.png
-
\ No newline at end of file