source: npl/system/klibc/patches/klibc-linux-libc-dev @ 76ea60c

Last change on this file since 76ea60c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.8 KB
Line 
1From: Ben Hutchings <ben@decadent.org.uk>
2Date: Sun, 14 Mar 2010 18:41:56 +0000
3Subject: Fix klibc Debian specific build trouble
4
5Simply remove the headers_install invocation and rely on linux-libc-dev.
6
7With these changes:
8
9(the extra chmod was needed to allow for umask > 022) I could compile,
10link and run this program:
11
12#include <unistd.h>
13
14int main(void)
15{
16        write(1, "Hello world\n", 12);
17        return 0;
18}
19
20Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
21[ added multi arch support ]
22Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
23Signed-off-by: maximilian attems <max@stro.at>
24[ fixed cross building ]
25Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
26---
27Index: klibc-2.0~rc2/scripts/Kbuild.install
28===================================================================
29--- klibc-2.0~rc2.orig/scripts/Kbuild.install   2012-02-11 18:50:21.000000000 +0000
30+++ klibc-2.0~rc2/scripts/Kbuild.install        2012-02-11 19:04:52.000000000 +0000
31@@ -95,7 +95,12 @@
32        $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
33        $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
34        $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
35-       $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
36+       $(Q)for x in /usr/include/linux /usr/include/asm*; do \
37+               ln -s $${x} $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
38+       done
39+       $(Q)if [ -n "$(DEB_HOST_MULTIARCH)" ]; then \
40+               ln -sf /usr/include/$(DEB_HOST_MULTIARCH)/asm $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
41+       fi
42        $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
43        $(Q)chmod -R a+rX $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
44        $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
45 
Note: See TracBrowser for help on using the repository browser.