rdieter pushed to kstars (master). "build libhtmesh with -fPIC"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 19:28:00 UTC 2015


>From fa2463e0ddeda80e0867248d5e9e64ced9ea101c Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at gmail.com>
Date: Tue, 14 Apr 2015 14:26:38 -0500
Subject: build libhtmesh with -fPIC


diff --git a/kstars-15.04.0-htmesh_PIC.patch b/kstars-15.04.0-htmesh_PIC.patch
new file mode 100644
index 0000000..5bb6b37
--- /dev/null
+++ b/kstars-15.04.0-htmesh_PIC.patch
@@ -0,0 +1,12 @@
+diff -up kstars-15.04.0/kstars/htmesh/CMakeLists.txt.PIC kstars-15.04.0/kstars/htmesh/CMakeLists.txt
+--- kstars-15.04.0/kstars/htmesh/CMakeLists.txt.PIC	2015-04-03 08:30:27.000000000 -0500
++++ kstars-15.04.0/kstars/htmesh/CMakeLists.txt	2015-04-14 14:25:41.776499522 -0500
+@@ -26,7 +26,7 @@ set(HTMesh_LIB_SRCS
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
+ #TODO is there KF5_ENABLE_EXCEPTIONS?
+ set (CMAKE_CXX_FLAGS "-fexceptions")
+-#set (CMAKE_CXX_FLAGS "-fPIC") # If you wish to compile the HTMesh perl wrapper, uncomment this, rebuild and copy the library into /usr/lib/, because we will use it as a shared object. See README in th e perl wrapper directory (kstars/kstars/data/tools/HTMesh-*) for more details.
++set (CMAKE_CXX_FLAGS "-fPIC") # If you wish to compile the HTMesh perl wrapper, uncomment this, rebuild and copy the library into /usr/lib/, because we will use it as a shared object. See README in th e perl wrapper directory (kstars/kstars/data/tools/HTMesh-*) for more details.
+ 
+ add_library(htmesh STATIC ${HTMesh_LIB_SRCS})
+ 
diff --git a/kstars.spec b/kstars.spec
index 0ff328b..1d099d2 100644
--- a/kstars.spec
+++ b/kstars.spec
@@ -16,6 +16,9 @@ Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%
 
 ## upstream patches
 
+## upstreamable patches
+Patch1: kstars-15.04.0-htmesh_PIC.patch
+
 %if 0%{?fedora} > 19
 BuildRequires: libappstream-glib
 %endif
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kstars.git/commit/?h=master&id=fa2463e0ddeda80e0867248d5e9e64ced9ea101c


More information about the scm-commits mailing list