1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Avoid Global Offset Table (GOT) limits by enabling -fPIC on the BSDs.

config/cf/bsdLib.rules: Switch -fpic to -fPIC
lib/DtXinerama/Imakefile: Use $(PICFLAGS) instead of -fpic

Several tickets have been opened by users encountering the low 8KiB
GOT limit on SPARC systems running BSD. This change makes CDE builds
on BSD more consistent with those on Linux, where -fPIC has been the
default without any reported issues.
This commit is contained in:
Lev Kujawski 2021-02-01 17:06:48 -07:00 committed by Jon Trulson
parent 14eb374e0a
commit 1f52f5ca81
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ XCOMM $XConsortium: bsdLib.rules /main/3 1996/09/28 16:09:18 rws $
#define SharedLibraryLoadFlags -shared
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fpic
#define PositionIndependentCFlags -fPIC
#endif
/*

View file

@ -40,7 +40,7 @@ OBJS = DtXinerama.o
INCLUDES = -I.
XCOMM -fpic is required for static libDtXinerama to link with libDtSvc properly
CCOPTIONS += -fpic
CCOPTIONS += $(PICFLAGS)
DependTarget()