CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
fixed LDFLAGS usage for Ubuntu's host compilation
authorJose V Beneyto <sepen@crux.nu>
Sat, 6 Mar 2010 09:55:38 +0000 (10:55 +0100)
committerJose V Beneyto <sepen@crux.nu>
Sat, 6 Mar 2010 09:55:38 +0000 (10:55 +0100)
Makefile

index 83c4c8578533d41851c79b725a1bea2d4348ac9c..81a024cc510be23d845b4b97ab6f748c1e89a777 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,11 @@
 all: src/pkgmk.conf src/pkgmk
 
 src/pkgmk:
-       @make -C src
+       @if grep -e ubuntu /proc/version >/dev/null; then \
+               make -C src LDFLAGS="-static -larchive -lz -lacl"; \
+       else \
+               make -C src; \
+       fi
        @chmod a+x src/pkgmk
 
 clean: