Fix FTBFS on kFreeBSD and Hurd
authorGeorges Khaznadar <georgesk@debian.org>
Sat, 3 Sep 2016 15:57:10 +0000 (17:57 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Wed, 23 Dec 2020 18:51:45 +0000 (18:51 +0000)
The modification should allow the package to be built on new platforms:
hurd and *freebsd.

Gbp-Pq: Topic porting-kfreebsd-hurd
Gbp-Pq: Name Fix-FTBFS-on-kFreeBSD-and-Hurd.patch

include/kiway.h

index 6e27bbf6f626bd79adbcfd97c0351062c2595646..9c870e1eda760a49e2a7bebf3cf3fb5921a2ae12 100644 (file)
@@ -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" )