summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/vxworks.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sparc/vxworks.h')
-rw-r--r--gcc/config/sparc/vxworks.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/sparc/vxworks.h b/gcc/config/sparc/vxworks.h
index 4d971a4bbc8..e1b596e7f79 100644
--- a/gcc/config/sparc/vxworks.h
+++ b/gcc/config/sparc/vxworks.h
@@ -1,6 +1,6 @@
/* Definitions of target machine for GNU compiler,
for SPARC targeting the VxWorks run time environment.
- Copyright (C) 2007, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
This file is part of GCC.
@@ -33,6 +33,9 @@ along with GCC; see the file COPYING3. If not see
#undef CPP_SUBTARGET_SPEC
#define CPP_SUBTARGET_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
+#undef ASM_SPEC
+#define ASM_SPEC "%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
+
#undef LIB_SPEC
#define LIB_SPEC VXWORKS_LIB_SPEC
#undef LINK_SPEC