webmcp

view Makefile.options @ 540:d0104bb90ede

Add -lc to LDFLAGS to avoid weird problems on FreeBSD
author jbe
date Sat Oct 12 20:35:00 2019 +0200 (10 months ago)
parents dd6ef55cd59d
children 72e55c2eb63c
line source
1 # C compiler command
2 CC = cc
4 # linker command
5 LD = ld
7 # filename extension for shared libraries
8 SLIB_EXT = so
10 # Lua binaries
11 LUA_BIN = lua
12 LUAC_BIN = luac
14 # C compiler flags
15 # TODO: check alternatives to -D_GNU_SOURCE -fPIC
16 # using libtool?
17 CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/include/lua5.3 -I /usr/local/include/lua53
19 # additional C compiler flags for parts which depend on PostgreSQL
20 CFLAGS_PGSQL = -I `pg_config --includedir` -I `pg_config --pkgincludedir` -I `pg_config --includedir-server`
22 # linker flags
23 LDFLAGS = -shared -L /usr/lib -L /usr/local/lib -lc
24 # NOTE: -lc needed on FreeBSD to avoid weird problems
26 # additional linker flags for parts which depend on PostgreSQL
27 LDFLAGS_PGSQL = -L `pg_config --libdir` -rpath `pg_config --libdir`

Impressum / About Us