Edit

kc3-lang/libbsd/test/Makefile.am

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2014-07-20 01:48:20
    Hash : e8d3d041
    Message : build: Remove hard requirement for GNU .init_array section support In case the support is not available, just stop building the libbsd-ctor.a library, which is a nice to have thing, but should not have been a hard requirement from the start. This should allow to build libbsd on non-glibc based systems using another libc.

  • test/Makefile.am
  • ## Process this file with automake to produce Makefile.in
    
    AM_CPPFLAGS = \
    	-I$(top_builddir) \
    	-isystem $(top_srcdir)/include/bsd/ \
    	-include $(top_builddir)/config.h \
    	-DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \
    	-D__REENTRANT
    
    check_PROGRAMS = \
    	headers \
    	overlay \
    	endian \
    	humanize \
    	fgetln \
    	funopen \
    	proctitle-init \
    	$(nil)
    
    if BUILD_LIBBSD_CTOR
    check_PROGRAMS += proctitle
    endif
    
    humanize_LDFLAGS = $(top_builddir)/src/libbsd.la
    fgetln_LDFLAGS = $(top_builddir)/src/libbsd.la
    funopen_LDFLAGS = $(top_builddir)/src/libbsd.la
    proctitle_init_SOURCES = proctitle.c
    proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1
    proctitle_init_LDFLAGS = $(top_builddir)/src/libbsd.la
    proctitle_LDFLAGS = \
    	-Wl,-u,libbsd_init_func \
    	$(top_builddir)/src/libbsd-ctor.a \
    	$(top_builddir)/src/libbsd.la \
    	$(nil)
    
    TESTS = $(check_PROGRAMS)