pkgsrc/lang/konoha/patches/patch-package_konoha.io_CMakeLists.txt

18 lines
537 B
Text
Raw Normal View History

2015-12-30 00:34:43 +01:00
$NetBSD: patch-package_konoha.io_CMakeLists.txt,v 1.2 2015/12/29 23:34:50 dholland Exp $
Set -fPIC correctly.
--- package/konoha.io/CMakeLists.txt.orig 2015-03-28 23:09:49.000000000 +0000
+++ package/konoha.io/CMakeLists.txt
@@ -1,9 +1,7 @@
cmake_minimum_required(VERSION 2.6)
set(CMAKE_BUILD_TYPE ${KONOHA_BUILD_TYPE})
-if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
- set(CMAKE_C_FLAGS "-fPIC")
-endif()
+set(CMAKE_C_FLAGS "-fPIC")
project(io)
set(PACKAGE_SOURCE_CODE src/io.c src/base64.c ./src/digest.c ./src/msgpack.c)