Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-11-04 21:39:11 +0000
committerAndrew Gvozdev2010-11-04 21:39:11 +0000
commit2031a8ee158f2997ff676514a87e5bc6829257ea (patch)
tree7e2e189138a7d40840629866c88711f85984338b /build/org.eclipse.cdt.managedbuilder.gnu.ui
parent1fbb6f4b05ec8ac6cf83238a968acd6e0853ba9d (diff)
downloadorg.eclipse.cdt-2031a8ee158f2997ff676514a87e5bc6829257ea.tar.gz
org.eclipse.cdt-2031a8ee158f2997ff676514a87e5bc6829257ea.tar.xz
org.eclipse.cdt-2031a8ee158f2997ff676514a87e5bc6829257ea.zip
bug 256763: -fPIC parameter for GCC compilers
Based on patch from Andrey Tretyakov
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties1
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml16
2 files changed, 17 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties
index d0f0085ba83..b6eb4cb9230 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties
@@ -146,6 +146,7 @@ Option.Posix.Warn.toerrs=Warnings as errors (-Werror)
Option.Posix.Verbose=Verbose (-v)
Option.OtherFlags=Other flags
Option.Posix.Ansi=Support ANSI programs (-ansi)
+Option.PIC=Position Independent Code (-fPIC)
Option.Posix.Linker.NoStartFiles=Do not use standard start files (-nostartfiles)
Option.Posix.Linker.NoDefLibs=Do not use default libraries (-nodefaultlibs)
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml
index 03c07e5845d..f26ee076aae 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml
@@ -1238,6 +1238,14 @@
id="gnu.c.compiler.option.misc.ansi"
valueType="boolean">
</option>
+ <option
+ category="gnu.c.compiler.category.other"
+ command="-fPIC"
+ defaultValue="false"
+ id="gnu.c.compiler.option.misc.pic"
+ name="%Option.PIC"
+ valueType="boolean">
+ </option>
<inputType
sourceContentType="org.eclipse.cdt.core.cSource"
sources="c"
@@ -1528,6 +1536,14 @@
id="gnu.cpp.compiler.option.other.verbose"
valueType="boolean">
</option>
+ <option
+ category="gnu.cpp.compiler.category.other"
+ command="-fPIC"
+ defaultValue="false"
+ id="gnu.cpp.compiler.option.other.pic"
+ name="%Option.PIC"
+ valueType="boolean">
+ </option>
<inputType
sourceContentType="org.eclipse.cdt.core.cxxSource"
sources="c,C,cc,cxx,cpp"

Back to the top