Package: kicad / 5.0.2+dfsg1-1~bpo9+1

porting-kfreebsd-hurd/Fix-FTBFS-on-kFreeBSD-and-Hurd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Georges Khaznadar <georgesk@debian.org>
Date: Sat, 3 Sep 2016 17:57:10 +0200
Subject: Fix FTBFS on kFreeBSD and Hurd

The modification should allow the package to be built on new platforms:
hurd and *freebsd.
---
 include/kiway.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/kiway.h b/include/kiway.h
index fd58d91..adbfe12 100644
--- a/include/kiway.h
+++ b/include/kiway.h
@@ -116,7 +116,7 @@ as such!  As such, it is OK to use UTF8 characters:
 #define KIFACE_INSTANCE_NAME_AND_VERSION   "KIFACE_1"
 
 #ifndef SWIG
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__GNU__)
  #define LIB_ENV_VAR    wxT( "LD_LIBRARY_PATH" )
 #elif defined(__WXMAC__)
  #define LIB_ENV_VAR    wxT( "DYLD_LIBRARY_PATH" )