moonbridge

changeset 324:253eba579b6a

Add -L/usr/lib -lc to all invocations of ld on FreeBSD
author jbe
date Sat Oct 12 20:38:16 2019 +0200 (12 months ago)
parents 1cd58b8efa23
children 73c009c2f389
files Makefile
line diff
     1.1 --- a/Makefile	Sat Oct 12 01:45:43 2019 +0200
     1.2 +++ b/Makefile	Sat Oct 12 20:38:16 2019 +0200
     1.3 @@ -8,7 +8,8 @@
     1.4  LUA_INCLUDE ?= /usr/local/include/lua53
     1.5  LUA_LIBDIR  ?= /usr/local/lib
     1.6  LUA_LIBRARY ?= lua-5.3
     1.7 -UTIL_FLAGS  ?= -lutil -L/usr/lib
     1.8 +UTIL_FLAGS  ?= -lutil
     1.9 +LD_FLAGS    ?= -L/usr/lib -lc
    1.10  
    1.11  .elif $(PLATFORM) == "Linux"
    1.12  # Distinguish between different Linux distributions
    1.13 @@ -59,11 +60,11 @@
    1.14  	cc -c -Wall -O2 -fPIC -I $(LUA_INCLUDE) -o moonbridge_io.o moonbridge_io.c
    1.15  
    1.16  moonbridge_io.so: moonbridge_io.o
    1.17 -	ld -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
    1.18 +	ld $(LD_FLAGS) -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
    1.19  
    1.20  freebsd_with_tls::
    1.21  	#TODO
    1.22 -	cc -D MOONBR_IO_USE_TLS -c -Wall -O2 -fPIC -I /usr/local/include/lua53 -I /usr/local/include -o moonbridge_io.o moonbridge_io.c && ld -L/usr/local/lib -shared -o moonbridge_io.so moonbridge_io.o -lutil -ltls
    1.23 +	cc -D MOONBR_IO_USE_TLS -c -Wall -O2 -fPIC -I /usr/local/include/lua53 -I /usr/local/include -o moonbridge_io.o moonbridge_io.c && ld $(LD_FLAGS) -L/usr/local/lib -shared -o moonbridge_io.so moonbridge_io.o -lutil -ltls
    1.24  
    1.25  clean::
    1.26  	rm -f moonbridge moonbridge_io.o moonbridge_io.so

Impressum / About Us