mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-3 if building a shared library, use -fPIC -DPIC, otherwise don't
X-SVN-Rev: 2538
This commit is contained in:
parent
70d88bb088
commit
abf1ce1516
1 changed files with 6 additions and 5 deletions
|
@ -9,16 +9,17 @@ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
|||
|
||||
## Flags for position independent code
|
||||
ifneq (@ENABLE_SHARED@,)
|
||||
PIC = -fPIC -DPIC
|
||||
PICFLAGS = -fPIC
|
||||
PICCPPFLAGS = -DPIC
|
||||
endif
|
||||
|
||||
## Commands to compile
|
||||
COMPILE.c= $(CC) $(PIC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
COMPILE.cc= $(CXX) $(PIC) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
||||
COMPILE.c= $(CC) $(PICFLAGS) $(PICCPPFLAGS) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
COMPILE.cc= $(CXX) $(PICFLAGS) $(PICCPPFLAGS) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
||||
|
||||
## Commands to link
|
||||
LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
||||
LINK.c= $(CC) $(PICFLAGS) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
LINK.cc= $(CXX) $(PICFLAGS) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
||||
|
||||
## Commands to make a shared library
|
||||
SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared
|
||||
|
|
Loading…
Add table
Reference in a new issue