fixed build files regarding -lm

This commit is contained in:
hyung-hwan 2020-11-14 09:02:39 +00:00
parent a9418f26c2
commit 9ff63b9503
5 changed files with 14 additions and 7 deletions

View File

@ -14,6 +14,13 @@ LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(abs_builddir)/../lib -L$(libdir)
CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON) CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON)
LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -no-undefined LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -no-undefined
##
## -lm may get omitted from dependency_libs in libhawk.la.
## the generated libtool in the build directory may include -lm in postdeps
## dependency_libs excludes items in postdeps.
## specify -lm explicitly to satisfy dependency regardless of libtool behavior.
##
LIBADD_BIN_COMMON = $(LIBM) LIBADD_BIN_COMMON = $(LIBM)
bin_PROGRAMS = hawk bin_PROGRAMS = hawk

View File

@ -11,7 +11,7 @@ AM_CPPFLAGS = \
-I$(includedir) -I$(includedir)
AM_LDFLAGS = -L$(abs_builddir)/../lib -L$(libdir) AM_LDFLAGS = -L$(abs_builddir)/../lib -L$(libdir)
LDADD = LDADD = $(LIBM)
check_SCRIPTS = h-001.hawk h-002.hawk check_SCRIPTS = h-001.hawk h-002.hawk
##noinst_SCRIPTS = $(check_SCRIPTS) ##noinst_SCRIPTS = $(check_SCRIPTS)

View File

@ -110,14 +110,15 @@ CONFIG_CLEAN_VPATH_FILES =
am_t_001_OBJECTS = t-001.$(OBJEXT) am_t_001_OBJECTS = t-001.$(OBJEXT)
t_001_OBJECTS = $(am_t_001_OBJECTS) t_001_OBJECTS = $(am_t_001_OBJECTS)
t_001_LDADD = $(LDADD) t_001_LDADD = $(LDADD)
t_001_DEPENDENCIES = am__DEPENDENCIES_1 =
t_001_DEPENDENCIES = $(am__DEPENDENCIES_1)
AM_V_lt = $(am__v_lt_@AM_V@) AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent am__v_lt_0 = --silent
am__v_lt_1 = am__v_lt_1 =
am_t_002_OBJECTS = t-002.$(OBJEXT) am_t_002_OBJECTS = t-002.$(OBJEXT)
t_002_OBJECTS = $(am_t_002_OBJECTS) t_002_OBJECTS = $(am_t_002_OBJECTS)
am__DEPENDENCIES_1 = am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
am_t_003_OBJECTS = t-003.$(OBJEXT) am_t_003_OBJECTS = t-003.$(OBJEXT)
t_003_OBJECTS = $(am_t_003_OBJECTS) t_003_OBJECTS = $(am_t_003_OBJECTS)
am_t_004_OBJECTS = t-004.$(OBJEXT) am_t_004_OBJECTS = t-004.$(OBJEXT)
@ -557,7 +558,7 @@ AM_CPPFLAGS = \
-I$(includedir) -I$(includedir)
AM_LDFLAGS = -L$(abs_builddir)/../lib -L$(libdir) AM_LDFLAGS = -L$(abs_builddir)/../lib -L$(libdir)
LDADD = LDADD = $(LIBM)
check_SCRIPTS = h-001.hawk h-002.hawk check_SCRIPTS = h-001.hawk h-002.hawk
EXTRA_DIST = $(check_SCRIPTS) EXTRA_DIST = $(check_SCRIPTS)
t_001_SOURCES = t-001.c t.h t_001_SOURCES = t-001.c t.h

View File

@ -11,7 +11,7 @@ LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(abs_builddir)/../lib -L$(libdir)
CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON) CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON)
LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
LIBADD_BIN_COMMON = $(LIBM) LIBADD_BIN_COMMON =
bin_PROGRAMS = uni-case uni-prop bin_PROGRAMS = uni-case uni-prop

View File

@ -112,7 +112,6 @@ PROGRAMS = $(bin_PROGRAMS)
am_uni_case_OBJECTS = uni_case-uni-case.$(OBJEXT) am_uni_case_OBJECTS = uni_case-uni-case.$(OBJEXT)
uni_case_OBJECTS = $(am_uni_case_OBJECTS) uni_case_OBJECTS = $(am_uni_case_OBJECTS)
am__DEPENDENCIES_1 = am__DEPENDENCIES_1 =
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
AM_V_lt = $(am__v_lt_@AM_V@) AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent am__v_lt_0 = --silent
@ -349,7 +348,7 @@ CPPFLAGS_ALL_COMMON = \
LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(abs_builddir)/../lib -L$(libdir) LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(abs_builddir)/../lib -L$(libdir)
CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON) CPPFLAGS_BIN_COMMON = $(CPPFLAGS_ALL_COMMON)
LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined LDFLAGS_BIN_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
LIBADD_BIN_COMMON = $(LIBM) LIBADD_BIN_COMMON =
uni_case_SOURCES = uni-case.c uni_case_SOURCES = uni-case.c
uni_case_CPPFLAGS = $(CPPFLAGS_ALL_COMMON) uni_case_CPPFLAGS = $(CPPFLAGS_ALL_COMMON)
uni_case_LDFLAGS = $(LDFLAGS_ALL_COMMON) uni_case_LDFLAGS = $(LDFLAGS_ALL_COMMON)