Skip to content

Commit

Permalink
Add -mlong-double-64 flag for vecgeom and geant4 libs on ppc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Jan 21, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d0a1596 commit 9fdd27d
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 9 additions & 3 deletions geant4.spec
Original file line number Diff line number Diff line change
@@ -31,7 +31,15 @@ export VecGeom_DIR=${VECGEOM_ROOT}/lib/cmake/VecGeom

cmake ../%{n}.%{realversion} \
-DCMAKE_CXX_COMPILER="g++" \
%ifarch ppc64le
-DCMAKE_CXX_FLAGS="-fPIC -mlong-double-64" \
-DCMAKE_STATIC_LIBRARY_CXX_FLAGS="-fPIC -mlong-double-64" \
-DCMAKE_STATIC_LIBRARY_C_FLAGS="-fPIC -mlong-double-64" \
%else
-DCMAKE_CXX_FLAGS="-fPIC" \
-DCMAKE_STATIC_LIBRARY_CXX_FLAGS="-fPIC" \
-DCMAKE_STATIC_LIBRARY_C_FLAGS="-fPIC" \
%endif
-DCMAKE_INSTALL_PREFIX:PATH="%i" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_BUILD_TYPE=Release \
@@ -49,9 +57,7 @@ cmake ../%{n}.%{realversion} \
-DBUILD_STATIC_LIBS=ON \
-DGEANT4_INSTALL_EXAMPLES=OFF \
-DGEANT4_USE_SYSTEM_CLHEP=ON \
-DGEANT4_BUILD_MULTITHREADED=ON \
-DCMAKE_STATIC_LIBRARY_CXX_FLAGS="-fPIC" \
-DCMAKE_STATIC_LIBRARY_C_FLAGS="-fPIC"
-DGEANT4_BUILD_MULTITHREADED=ON

make %makeprocesses VERBOSE=1

7 changes: 3 additions & 4 deletions vecgeom.spec
Original file line number Diff line number Diff line change
@@ -21,10 +21,6 @@ rm -rf ../build
mkdir ../build
cd ../build

%ifarch ppc64le
export CXXFLAGS="-mlong-double-64"
%endif

cmake ../%{n}-%{realversion} \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DROOT=OFF \
@@ -38,6 +34,9 @@ cmake ../%{n}-%{realversion} \
%else
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_CXX_STANDARD=17 \
%endif
%ifarch ppc64le
-DCMAKE_CXX_FLAGS="-mlong-double-64" \
%endif
-DGEANT4=OFF

0 comments on commit 9fdd27d

Please sign in to comment.