• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisioncef9840613e4f8fcf777df0ac10dfcdd7cefb8f5 (tree)
Time2018-03-02 03:52:19
AuthorWaldemar Brodkorb <wbx@ucli...>
CommiterWaldemar Brodkorb

Log Message

fix issue with LDSO_GNU_HASH_SUPPORT

Under Fedora 27 there is a problem with the existing ld check.
Binutils ld segfaults. Add a glibc compat macro to complete
the build on Fedora.

Signed-off-by: Sven Anders <anders@anduras.de>

Change Summary

Incremental Difference

--- a/Rules.mak
+++ b/Rules.mak
@@ -195,8 +195,9 @@ check_as=$(shell \
195195 if $(CC) -Wa,$(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; \
196196 then echo "-Wa,$(1)"; fi)
197197 check_ld=$(shell \
198- if $(CC) $(LDFLAG-fuse-ld) $(CFLAG_-Wl--no-warn-mismatch) -Wl,$(1) $(CFLAG_-nostdlib) -o /dev/null -Wl,-b,binary /dev/null > /dev/null 2>&1; \
199- then echo "$(1)"; fi)
198+ tf="/tmp/clducl$$$$.c"; echo "int _start(){return 0;}int main(){return 0;}" >$$tf; \
199+ if $(CC) $(LDFLAG-fuse-ld) $(CFLAG_-Wl--no-warn-mismatch) -Wl,$(1) $(CFLAG_-nostdlib) -o /dev/null $$tf > /dev/null 2>&1; \
200+ then echo "$(1)"; fi; rm -f $$tf )
200201
201202 # Use variable indirection here so that we can have variable
202203 # names with fun chars in them like equal signs
--- a/include/features.h
+++ b/include/features.h
@@ -139,6 +139,9 @@
139139 # define __GNUC_PREREQ(maj, min) 0
140140 #endif
141141
142+/* Whether to use feature set F. */
143+#define __GLIBC_USE(F) __GLIBC_USE_ ## F
144+
142145 /* _DEFAULT_SOURCE is equivalent to defining _BSD_SOURCE and _SVID_SOURCE
143146 * and vice versa. */
144147 #ifdef _DEFAULT_SOURCE