From 70475d281dacb742e807c78a7f0fc951d85044a3 Mon Sep 17 00:00:00 2001 From: Jin^eLD Date: Sun, 23 Mar 2014 02:01:45 +0100 Subject: Fix NaCl builds for *BSD From what I see there is a difference between *BSD and Linux when linking vs. toxcore which has been bulit vs. the NaCl library: on Linux it only links if NaCl's object files (i.e. randombytes.o) is present in the linker options, however on *BSD systems this will cause a linking error, see: https://github.com/Tox/toxic/issues/31#issuecomment-38224441 This commit makes sure that we do not add the NaCl object files to our pkg-config settings on *BSD, but do add them on Linux. --- libtoxcore.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtoxcore.pc.in') diff --git a/libtoxcore.pc.in b/libtoxcore.pc.in index 1e2b9365..57d3f8ef 100644 --- a/libtoxcore.pc.in +++ b/libtoxcore.pc.in @@ -7,5 +7,5 @@ Name: libtoxcore Description: Tox protocol library Requires: Version: @PACKAGE_VERSION@ -Libs: -L${libdir} @NACL_LDFLAGS@ -ltoxcore @NACL_LIBS@ @LIBS@ +Libs: @NACL_OBJECTS_PKGCONFIG@ -L${libdir} @NACL_LDFLAGS@ -ltoxcore @NACL_LIBS@ @LIBS@ Cflags: -I${includedir} -- cgit v1.2.3