Skip to content

Commit

Permalink
build: Link $(LIBOBJS) from src/ dir, remove libcompat.la.
Browse files Browse the repository at this point in the history
The libcompat.la library was small and less friendly to bootstrapping
and cross compilation. Now, we will simply link individual object
files as needed, which is simpler.
  • Loading branch information
Explorer09 authored and westes committed Nov 24, 2016
1 parent 11c445c commit 713f5a0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ AC_INIT([the fast lexical analyser generator],[2.6.3],[flex-help@lists.sourcefor
AC_CONFIG_SRCDIR([src/scan.l])
AC_CONFIG_AUX_DIR([build-aux])
LT_INIT
AM_INIT_AUTOMAKE([-Wno-portability foreign check-news std-options dist-lzip parallel-tests 1.14.1])
AM_INIT_AUTOMAKE([-Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects 1.14.1])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_LIBOBJ_DIR([lib])
AC_CONFIG_MACRO_DIR([m4])
Expand Down
5 changes: 1 addition & 4 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
noinst_LTLIBRARIES = libcompat.la
libcompat_la_SOURCES = lib.c
libcompat_la_LIBADD = $(LTLIBOBJS)

# dummy
9 changes: 0 additions & 9 deletions lib/lib.c

This file was deleted.

2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ COMMON_SOURCES = \
version.h \
yylex.c

LDADD = ../lib/libcompat.la @LIBINTL@
LDADD = $(LIBOBJS) @LIBINTL@

include_HEADERS = \
FlexLexer.h
Expand Down

0 comments on commit 713f5a0

Please sign in to comment.