On Monday 13 October 2014 09:16:06 Salvo Tomaselli wrote:
> Hello,
> 
> I need some debian related help.
> 
> Basically, subsurface.pro doesn't have a case for freebsd, (it
> should just compile with linux.c) so there it fails to link
> because subsurface_open is missing.
> 
> If someone knows how to fix it quickly, please send me a patch
> for the .pro file.

Hi Salvo

Try this, please.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>From 6cc51b6eea8ac06962da96ecf07b2c07b7484055 Mon Sep 17 00:00:00 2001
From: Thiago Macieira <[email protected]>
Date: Mon, 13 Oct 2014 13:05:17 +0200
Subject: [PATCH 1/1] Fix compilation on other Unix besides Linux

The linux.c file is really for just generic Unix systems, so adapt the
.pro file logic to match.

Signed-off-by: Thiago Macieira <[email protected]>
---
 subsurface.pro | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/subsurface.pro b/subsurface.pro
index 6d3a581..a01bc55 100644
--- a/subsurface.pro
+++ b/subsurface.pro
@@ -171,9 +171,9 @@ SOURCES =  \
 	subsurfacesysinfo.cpp
 
 android: SOURCES += android.cpp
-else: linux*: SOURCES += linux.c
-mac: SOURCES += macos.c
-win32: SOURCES += windows.c
+else: win32: SOURCES += windows.c
+else: mac: SOURCES += macos.c
+else: SOURCES += linux.c        # All other Unix, really
 
 android: SOURCES -= \
 	qt-ui/usermanual.cpp \
-- 
1.8.4.5

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to