Skip to content

Commit

Permalink
fPIC needed also for CXX
Browse files Browse the repository at this point in the history
  - #91
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Aug 27, 2018
1 parent 580064e commit 689ab33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.head
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ifeq ($(ABI),WINDOWS64)
CP=cp
FEXT=.exe
SHREXT=.dll
STAEXT=.a
OMDEVMSYS=$(shell cygpath $$OMDEV)
CMAKE = $(OMDEVMSYS)/bin/cmake/bin/cmake
CMAKE_TARGET=-G "MSYS Makefiles"
Expand All @@ -42,6 +43,7 @@ else ifeq ($(ABI),WINDOWS32)
CP=cp
FEXT=.exe
SHREXT=.dll
STAEXT=.a
OMDEVMSYS=$(shell cygpath $$OMDEV)
CMAKE = $(OMDEVMSYS)/bin/cmake/bin/cmake
CMAKE_TARGET=-G "MSYS Makefiles"
Expand All @@ -56,6 +58,7 @@ else ifeq ($(ABI),MAC64)
AR=ar
CP=cp
SHREXT=.dylib
STAEXT=.a
CMAKE=cmake
CMAKE_TARGET="-G Unix Makefiles"
INSTALL_DIR = install/mac
Expand All @@ -66,6 +69,7 @@ else
AR=ar
CP=cp
SHREXT=.so
STAEXT=.a
CMAKE=cmake
CMAKE_TARGET="-GUnix Makefiles"
INSTALL_DIR = install/linux
Expand Down
1 change: 1 addition & 0 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RTIMELIB = -lrtime
endif

override CC += $(CFLAGS) -std=c++11 $(EXTRAFLAGS)
override CXX += $(CXXFLAGS) -std=c++11 $(EXTRAFLAGS)

SRCCLT= Plugin/PluginImplementer.cc \
Plugin/MonitoringPluginImplementer.cc \
Expand Down

0 comments on commit 689ab33

Please sign in to comment.