Package: premake Version: 3.7-1 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hi, currently[1], premake does not build on GNU/Hurd. The two problems (both fixed with the attached patch) are: - GNU system not recognized as POSIX system - missing link to the lua library [1] https://buildd.debian.org/fetch.cgi?pkg=premake&arch=hurd-i386&ver=3.7-1&stamp=1286760739&file=log&as=raw Thanks, -- Pino
Description: Add GNU/Hurd support. Recognize GNU/Hurd as POSIX system, identifying it with the "hurd" OS string. Also, make sure to link to the lua library. Author: Pino Toscano <toscano.p...@tiscali.it> --- a/Src/os.c +++ b/Src/os.c @@ -33,6 +33,8 @@ os = "bsd"; #elif defined(__APPLE__) && defined(__MACH__) os = "macosx"; +#elif defined(__GNU__) + os = "hurd"; #else os = "windows"; #endif @@ -59,6 +61,7 @@ if (matches(name, "bsd") || matches(name, "linux") || matches(name, "macosx") || + matches(name, "hurd") || matches(name, "windows")) { os = name; --- a/Src/os.h +++ b/Src/os.h @@ -23,6 +23,8 @@ #define PLATFORM_POSIX 1 #elif defined(__APPLE__) && defined(__MACH__) #define PLATFORM_POSIX 1 +#elif defined(__GNU__) +#define PLATFORM_POSIX 1 #else #define PLATFORM_WINDOWS 1 #endif --- a/Src/premake.lua +++ b/Src/premake.lua @@ -33,7 +33,7 @@ -- Libraries - if (OS == "linux") then + if (OS == "linux" or OS == "gnu") then package.links = { "m","lua5.1" } end