fix libcurl linking when using system libcurl
This commit is contained in:
parent
65c58a7ceb
commit
05ced3b8c0
13
Makefile.am
13
Makefile.am
|
@ -146,19 +146,22 @@ if ENABLE_TIMERFD_WRAPPER
|
||||||
CORE_CFLAGS += -DTIMERFD_WRAP
|
CORE_CFLAGS += -DTIMERFD_WRAP
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if CURL_BUILTIN
|
|
||||||
CORE_LIBS += libs/curl/lib/libcurl.la
|
|
||||||
endif
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## libfreeswitch
|
## libfreeswitch
|
||||||
##
|
##
|
||||||
lib_LTLIBRARIES = libfreeswitch.la
|
lib_LTLIBRARIES = libfreeswitch.la
|
||||||
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
||||||
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS)
|
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS) -shared -no-undefined
|
||||||
libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(PLATFORM_CORE_LIBS)
|
libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(PLATFORM_CORE_LIBS)
|
||||||
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
|
|
||||||
|
if CURL_BUILTIN
|
||||||
|
CORE_LIBS += libs/curl/lib/libcurl.la
|
||||||
|
else
|
||||||
|
libfreeswitch_la_LDFLAGS += -lcurl
|
||||||
|
endif
|
||||||
|
|
||||||
if HAVE_LIBEDIT
|
if HAVE_LIBEDIT
|
||||||
libfreeswitch_la_LIBADD += $(TINFO_LIBS)
|
libfreeswitch_la_LIBADD += $(TINFO_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue