aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-24 21:26:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-24 21:26:04 +0000
commitfcfc6de9185bffa8460f5ae4aedd3aed8835a0c5 (patch)
tree70a308bf2971e0f60147872e5e5ff82b6082bf16 /lib
parentda0b380655ad10865c8e56b15641373b656f0807 (diff)
Based on David Hull's fix in bug report 804599, we now check for solaris
and gcc, to set the -mimpure-text link flag for linking the lib better.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index e09e921a5..0c3d8a24a 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -54,15 +54,19 @@ VERSION=-version-info 2:2:0
if NO_UNDEFINED
# The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
UNDEF = -no-undefined
-else
-UNDEF =
+endif
+
+if MIMPURE
+# This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
+# allocatable but non-writable sections" problems.
+MIMPURE = -mimpure-text
endif
if ARES
ARESLIB = -lares -L$(top_builddir)/ares
endif
-libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(ARESLIB)
+libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(ARESLIB) $(MIMPURE)
libcurl_la_SOURCES = arpa_telnet.h file.c netrc.h timeval.c \
base64.c file.h hostip.c progress.c timeval.h base64.h formdata.c \