CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
pkgutils-cross.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added fix to CFLAGS for alignment exception issues with some kernels and gcc-4.7
[pkgutils-cross.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 4d8680e6c0c98ac1c490bf9d024f93538532d432..fffe4f8653391e2386ef44a5a062c2ff18b00091 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,14
+2,25
@@
# Makefile
#
# Makefile
#
-all: src/pkgmk
src/pkgmk.conf
+all: src/pkgmk
.conf src/pkgmk pkginfo pkgadd
src/pkgmk:
src/pkgmk:
- @make -C src
+ @if [ -f /etc/debian_version -o -f /etc/debian_release -o -f /etc/lsb-release ]; then \
+ make -C src LDFLAGS="-static -larchive -lz -lacl"; \
+ else \
+ make -C src; \
+ fi
@chmod a+x src/pkgmk
@chmod a+x src/pkgmk
+pkginfo:
+ @ln -s src/pkgadd pkginfo
+
+pkgadd:
+ @ln -s src/pkgadd pkgadd
+
clean:
@make -C src clean
clean:
@make -C src clean
+ @rm -f pkginfo pkgadd
distclean:
@make -C src distclean
distclean:
@make -C src distclean