webmcp

diff Makefile.options @ 541:72e55c2eb63c

Use "cc -shared" instead of "ld -shared" to create *.so files
author jbe
date Sat Oct 19 15:05:55 2019 +0200 (2019-10-19)
parents d0104bb90ede
children 16197a40c7a9
line diff
     1.1 --- a/Makefile.options	Sat Oct 12 20:35:00 2019 +0200
     1.2 +++ b/Makefile.options	Sat Oct 19 15:05:55 2019 +0200
     1.3 @@ -1,9 +1,6 @@
     1.4  # C compiler command
     1.5  CC = cc
     1.6  
     1.7 -# linker command
     1.8 -LD = ld
     1.9 -
    1.10  # filename extension for shared libraries
    1.11  SLIB_EXT = so
    1.12  
    1.13 @@ -19,9 +16,9 @@
    1.14  # additional C compiler flags for parts which depend on PostgreSQL
    1.15  CFLAGS_PGSQL = -I `pg_config --includedir` -I `pg_config --pkgincludedir` -I `pg_config --includedir-server`
    1.16  
    1.17 -# linker flags
    1.18 -LDFLAGS = -shared -L /usr/lib -L /usr/local/lib -lc
    1.19 +# alternative C compiler flags for creating shared libraries
    1.20 +SHAREDFLAGS = -shared -L /usr/lib -L /usr/local/lib -lc
    1.21  # NOTE: -lc needed on FreeBSD to avoid weird problems
    1.22  
    1.23 -# additional linker flags for parts which depend on PostgreSQL
    1.24 -LDFLAGS_PGSQL = -L `pg_config --libdir` -rpath `pg_config --libdir`
    1.25 +# additional C compiler flags for creating shared libraries for parts which depend on PostgreSQL
    1.26 +SHAREDFLAGS_PGSQL = -L `pg_config --libdir` -Wl,--rpath,`pg_config --libdir`

Impressum / About Us