moonbridge

changeset 325:73c009c2f389

Use "cc -shared" instead of "ld -shared" to create *.so files
author jbe
date Sat Oct 19 14:56:47 2019 +0200 (11 months ago)
parents 253eba579b6a
children 4379766473ec
files Makefile
line diff
     1.1 --- a/Makefile	Sat Oct 12 20:38:16 2019 +0200
     1.2 +++ b/Makefile	Sat Oct 19 14:56:47 2019 +0200
     1.3 @@ -9,7 +9,6 @@
     1.4  LUA_LIBDIR  ?= /usr/local/lib
     1.5  LUA_LIBRARY ?= lua-5.3
     1.6  UTIL_FLAGS  ?= -lutil
     1.7 -LD_FLAGS    ?= -L/usr/lib -lc
     1.8  
     1.9  .elif $(PLATFORM) == "Linux"
    1.10  # Distinguish between different Linux distributions
    1.11 @@ -60,11 +59,11 @@
    1.12  	cc -c -Wall -O2 -fPIC -I $(LUA_INCLUDE) -o moonbridge_io.o moonbridge_io.c
    1.13  
    1.14  moonbridge_io.so: moonbridge_io.o
    1.15 -	ld $(LD_FLAGS) -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
    1.16 +	cc -shared -o moonbridge_io.so moonbridge_io.o $(UTIL_FLAGS)
    1.17  
    1.18  freebsd_with_tls::
    1.19  	#TODO
    1.20 -	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.21 +	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 && cc -L/usr/local/lib -shared -o moonbridge_io.so moonbridge_io.o -lutil -ltls
    1.22  
    1.23  clean::
    1.24  	rm -f moonbridge moonbridge_io.o moonbridge_io.so

Impressum / About Us