[PATCH] Link with -ldl on GNU/kFreeBSD

Peter Colberg peter at colberg.org
Sat Jul 2 03:50:37 CEST 2016


On Sun, Jun 19, 2016 at 06:55:53PM -0400, Peter Colberg wrote:
> +ifeq (,$(filter $(uname_S),DragonFly FreeBSD NetBSD OpenBSD))
>  	CGIT_LIBS += -ldl
>  endif

LuaJIT adds -ldl for specific OSes, which seems a better choice:

https://github.com/LuaJIT/LuaJIT/blob/master/src/Makefile

  ifeq (Linux,$(TARGET_SYS))
    TARGET_XLIBS+= -ldl
  endif
  ifeq (GNU/kFreeBSD,$(TARGET_SYS))
    TARGET_XLIBS+= -ldl
  endif

I will post a revised patch.

Peter


More information about the CGit mailing list