File: local-fpic.diff

package info (click to toggle)
glibc 2.19-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 202,472 kB
  • ctags: 140,344
  • sloc: ansic: 969,274; asm: 241,208; sh: 10,047; makefile: 8,467; cpp: 3,595; perl: 2,077; pascal: 1,839; awk: 1,704; yacc: 317; sed: 73
file content (16 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# DP: Make sure libc_nonshared.a is compiled with -fPIC on m68k

---
 ports/sysdeps/m68k/Makefile |    4 ++++
 1 file changed, 4 insertions(+)

--- a/ports/sysdeps/m68k/Makefile
+++ b/ports/sysdeps/m68k/Makefile
@@ -32,3 +32,7 @@
 ifeq ($(subdir),elf)
 CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
 endif
+
+# Build objects in libc_nonshared.a with -fPIC (instead of -fpic) to avoid
+# possible linkage problems.
+CFLAGS-.oS += -fPIC