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: 2535
This commit is contained in:
parent
b5399a19e1
commit
79bc498203
1 changed files with 7 additions and 2 deletions
|
@ -7,9 +7,14 @@
|
|||
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
|
||||
## Flags for position independent code
|
||||
ifneq (@ENABLE_SHARED@,)
|
||||
PIC = -fPIC -DPIC
|
||||
endif
|
||||
|
||||
## Commands to compile
|
||||
COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
||||
COMPILE.c= $(CC) $(PIC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
COMPILE.cc= $(CXX) $(PIC) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
||||
|
||||
## Commands to link
|
||||
LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
|
|
Loading…
Add table
Reference in a new issue