mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
70475d281d
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.
21 lines
715 B
Makefile
21 lines
715 B
Makefile
bin_PROGRAMS += DHT_bootstrap
|
|
|
|
DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
|
|
../toxcore/DHT.h \
|
|
../toxcore/friend_requests.h
|
|
|
|
DHT_bootstrap_CFLAGS = -I$(top_srcdir)/other \
|
|
$(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
DHT_bootstrap_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
EXTRA_DIST += $(top_srcdir)/other/DHTnodes \
|
|
$(top_srcdir)/other/tox.png
|