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:
parent
14eb374e0a
commit
1f52f5ca81
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ XCOMM $XConsortium: bsdLib.rules /main/3 1996/09/28 16:09:18 rws $
|
||||||
#define SharedLibraryLoadFlags -shared
|
#define SharedLibraryLoadFlags -shared
|
||||||
#endif
|
#endif
|
||||||
#ifndef PositionIndependentCFlags
|
#ifndef PositionIndependentCFlags
|
||||||
#define PositionIndependentCFlags -fpic
|
#define PositionIndependentCFlags -fPIC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -40,7 +40,7 @@ OBJS = DtXinerama.o
|
||||||
INCLUDES = -I.
|
INCLUDES = -I.
|
||||||
|
|
||||||
XCOMM -fpic is required for static libDtXinerama to link with libDtSvc properly
|
XCOMM -fpic is required for static libDtXinerama to link with libDtSvc properly
|
||||||
CCOPTIONS += -fpic
|
CCOPTIONS += $(PICFLAGS)
|
||||||
|
|
||||||
DependTarget()
|
DependTarget()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue