diff options
author | bowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 20:02:46 +0000 |
---|---|---|
committer | bowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 20:02:46 +0000 |
commit | b530556fb234dfa871cdb0b8668fe5c0c5c47d8b (patch) | |
tree | b7c2b0c6632e7bc81410b174ebb8cc40e604c1d1 /gcc/config/rs6000/x-darwin | |
parent | 2cdbcd518576f50da06ceb5ede8e8ae7bd37ddb7 (diff) | |
download | ppe42-gcc-b530556fb234dfa871cdb0b8668fe5c0c5c47d8b.tar.gz ppe42-gcc-b530556fb234dfa871cdb0b8668fe5c0c5c47d8b.zip |
Add -mdynamic-no-pic to compile flags for gcc. On Mac OS X and Darwin,
the compiler generates position-independent-code by default. This allows
an object file to be used for a dylib or executable without any thought
on the developer's part, but generates less-efficient code. Setting this
flag on gcc speeds compiles by 3-5%.
* config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86141 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/x-darwin')
-rw-r--r-- | gcc/config/rs6000/x-darwin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/rs6000/x-darwin b/gcc/config/rs6000/x-darwin index f7242a7ee5b..0a2f52883b9 100644 --- a/gcc/config/rs6000/x-darwin +++ b/gcc/config/rs6000/x-darwin @@ -1,3 +1,4 @@ +XCFLAGS = -mdynamic-no-pic host-darwin.o : $(srcdir)/config/rs6000/host-darwin.c $(CONFIG_H) $(SYSTEM_H) \ coretypes.h hosthooks.h hosthooks-def.h toplev.h diagnostic.h $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |