Skip to content

Commit

Permalink
- added -fPIC to the C flags for x86_64
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3753 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 27, 2008
1 parent c6c0f85 commit 16cd56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_runtime/Makefile
Expand Up @@ -7,7 +7,7 @@ CC = gcc
FC = g77
AR = ar -ru
UNAME := $(shell uname -m)
CMDFPUFLAGS := `case ${UNAME} in i[3456]86) echo "-msse2 -mfpmath=sse";; x86_64) echo "-msse2 -mfpmath=sse";; *) echo "";; esac`
CMDFPUFLAGS := `case ${UNAME} in i[3456]86) echo "-msse2 -mfpmath=sse";; x86_64) echo "-msse2 -mfpmath=sse -fPIC";; *) echo "";; esac`
FPUFLAGS := ${CMDFPUFLAGS}
CFLAGS = -Wall -O3 ${FPUFLAGS} -fexceptions -ansi -pedantic -I. $(EXTRA_CFLAGS)
CPPFLAGS = $(CFLAGS)
Expand Down

0 comments on commit 16cd56e

Please sign in to comment.