This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/19403] cross-compiling fails to install


https://sourceware.org/bugzilla/show_bug.cgi?id=19403

--- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
this works for me:

diff -pur a/glibc-2.22/Makefile b/glibc-2.22/Makefile
--- a/glibc-2.22/Makefile       2015-08-05 08:42:21.000000000 +0200
+++ b/glibc-2.22/Makefile       2015-12-25 14:10:22.508742935 +0100
@@ -96,7 +96,7 @@ elf/ldso_install:

 # Create links for shared libraries using the `ldconfig' program if possible.
 # Ignore the error if we cannot update /etc/ld.so.cache.
-ifeq (no,$(cross-compiling))
+ifeq ($(BUILD_CC),$(CC))
 ifeq (yes,$(build-shared))
 install: install-symbolic-link
 .PHONY: install-symbolic-link
diff -pur a/glibc-2.22/Makerules b/glibc-2.22/Makerules
--- a/glibc-2.22/Makerules      2015-08-05 08:42:21.000000000 +0200
+++ b/glibc-2.22/Makerules      2015-12-25 14:22:31.295783007 +0100
@@ -996,7 +996,7 @@ endef
 endif

 ifeq (yes,$(build-shared))
-ifeq (no,$(cross-compiling))
+ifeq ($(BUILD_CC),$(CC))
 symbolic-link-prog := $(elf-objpfx)sln
 symbolic-link-list := $(elf-objpfx)symlink.list
 define make-shlib-link

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]