cURL / Mailing Lists / curl-library / Single Mail

curl-library

PATCH: Curl makefile.in of lib directory change(order of variables for linking)

From: Arunav Sanyal <arunav.sanyal91_at_gmail.com>
Date: Mon, 16 Sep 2013 22:30:49 +0530

Hi

Certain versions of HP-UX does not allow linking using
SHLIB_PATH(counterpart of LD_LIBRARY_PATH). As a result, custom library
linking was failing. Following change fixes the linking issue:-

Note: $(CURL_HOME)/lib/Makefile.in was changed

diff -u Makefilenew.in Makefile.in

--- Makefilenew.in 2013-09-16 22:26:16.471074400 +0530
+++ Makefile.in 2013-08-05 16:58:54.000000000 +0530
@@ -214,7 +214,7 @@
 am__v_lt_1 =
 libcurl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
  $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libcurl_la_CFLAGS) \
- $(CFLAGS) $(LDFLAGS) $(libcurl_la_LDFLAGS) -o $@
+ $(CFLAGS) $(libcurl_la_LDFLAGS) $(LDFLAGS) -o $@
 libcurlu_la_LIBADD =
 am__objects_3 = libcurlu_la-file.lo libcurlu_la-timeval.lo \
  libcurlu_la-base64.lo libcurlu_la-hostip.lo \
@@ -274,7 +274,7 @@
 libcurlu_la_OBJECTS = $(am_libcurlu_la_OBJECTS)
 libcurlu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
  $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libcurlu_la_CFLAGS) \
- $(CFLAGS) $(LDFLAGS) $(libcurlu_la_LDFLAGS) -o $@
+ $(CFLAGS) $(libcurlu_la_LDFLAGS) $(LDFLAGS) -o $@
 @BUILD_UNITTESTS_TRUE_at_am_libcurlu_la_rpath =
 AM_V_P = $(am__v_P__at_AM_V@)
 am__v_P_ = $(am__v_P__at_AM_DEFAULT_V@)

Yours sincerely

-- 
Arunav Sanyal
4th year undergraduate student
B.E (Hons) Computer Science
BITS Pilani K.K Birla Goa Campus

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-16