5
5
# | (__| |_| | _ <| |___
6
6
# \___|\___/|_| \_\_____|
8
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
8
# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
10
10
# This software is licensed as described in the file COPYING, which
11
11
# you should have received as part of this distribution. The terms
70
70
LDADD = $(SUPPORTFILES_LIBS)
71
71
DEPENDENCIES = $(top_builddir)/lib/libcurl-gnutls.la
73
# Mostly for Windows build targets, when using static libcurl
74
if USE_CPPFLAG_CURL_STATICLIB
75
AM_CPPFLAGS += -DCURL_STATICLIB
78
73
# Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES,
79
74
# noinst_PROGRAMS, lib*_SOURCES, and lib*_CFLAGS)
80
75
include Makefile.inc
88
83
noinst_LTLIBRARIES =
92
# The -no-undefined flag is crucial to build fine on some platforms
86
if USE_CPPFLAG_CURL_STATICLIB
87
AM_CPPFLAGS += -DCURL_STATICLIB
93
libhostname_la_CPPFLAGS_EXTRA =
94
libhostname_la_LDFLAGS_EXTRA = -module -avoid-version -rpath /nowhere
95
libhostname_la_CFLAGS_EXTRA =
97
if CURL_LT_SHLIB_USE_NO_UNDEFINED
98
libhostname_la_LDFLAGS_EXTRA += -no-undefined
101
if CURL_LT_SHLIB_USE_MIMPURE_TEXT
102
libhostname_la_LDFLAGS_EXTRA += -mimpure-text
105
if DOING_CURL_SYMBOL_HIDING
106
libhostname_la_CPPFLAGS_EXTRA += -DCURL_HIDDEN_SYMBOLS
107
libhostname_la_CFLAGS_EXTRA += $(CFLAG_CURL_SYMBOL_HIDING)
110
libhostname_la_CPPFLAGS = $(AM_CPPFLAGS) $(libhostname_la_CPPFLAGS_EXTRA)
111
libhostname_la_LDFLAGS = $(AM_LDFLAGS) $(libhostname_la_LDFLAGS_EXTRA)
112
libhostname_la_CFLAGS = $(AM_CFLAGS) $(libhostname_la_CFLAGS_EXTRA)
96
114
libhostname_la_SOURCES = sethostname.c sethostname.h
98
116
libhostname_la_LIBADD =
99
117
libhostname_la_DEPENDENCIES =
100
libhostname_la_LDFLAGS = -module -avoid-version $(UNDEF) -rpath /nowhere
102
if DOING_CURL_SYMBOL_HIDING
103
libhostname_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_HIDDEN_SYMBOLS
104
libhostname_la_CFLAGS = $(AM_CFLAGS) $(CFLAG_CURL_SYMBOL_HIDING)
106
libhostname_la_CPPFLAGS = $(AM_CPPFLAGS)
107
libhostname_la_CFLAGS = $(AM_CFLAGS)