Fossil SCM

Moved the check for iconv(3) in -liconv up within auto.def. If it happens after the checks for OpenSSL on certain macOS configurations, autosetup can be fooled into believing it doesn't need -liconv on that platform. This checkin splits up the group of cc-check-functions calls, so the moved call is now documented as to why its segregated.

wyoung 2017-09-08 04:05 trunk
Commit e6f64f5eeb12a2780fb91059d048ce18870c8d031067bde503151fe69988e096
1 file changed +3 -1
+3 -1
--- auto.def
+++ auto.def
@@ -190,10 +190,13 @@
190190
} else {
191191
define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1
192192
define FOSSIL_DYNAMIC_BUILD
193193
}
194194
195
+# Check for libraries that need to be sorted out early
196
+cc-check-function-in-lib iconv iconv
197
+
195198
# Helper for OpenSSL checking
196199
proc check-for-openssl {msg {cflags {}} {libs {-lssl -lcrypto}}} {
197200
msg-checking "Checking for $msg..."
198201
set rc 0
199202
if {[is_mingw]} {
@@ -458,11 +461,10 @@
458461
# Last resort, may be Windows
459462
if {[is_mingw]} {
460463
define-append LIBS -lwsock32
461464
}
462465
}
463
-cc-check-function-in-lib iconv iconv
464466
cc-check-functions utime
465467
cc-check-functions usleep
466468
cc-check-functions strchrnul
467469
468470
# Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
469471
--- auto.def
+++ auto.def
@@ -190,10 +190,13 @@
190 } else {
191 define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1
192 define FOSSIL_DYNAMIC_BUILD
193 }
194
 
 
 
195 # Helper for OpenSSL checking
196 proc check-for-openssl {msg {cflags {}} {libs {-lssl -lcrypto}}} {
197 msg-checking "Checking for $msg..."
198 set rc 0
199 if {[is_mingw]} {
@@ -458,11 +461,10 @@
458 # Last resort, may be Windows
459 if {[is_mingw]} {
460 define-append LIBS -lwsock32
461 }
462 }
463 cc-check-function-in-lib iconv iconv
464 cc-check-functions utime
465 cc-check-functions usleep
466 cc-check-functions strchrnul
467
468 # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
469
--- auto.def
+++ auto.def
@@ -190,10 +190,13 @@
190 } else {
191 define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1
192 define FOSSIL_DYNAMIC_BUILD
193 }
194
195 # Check for libraries that need to be sorted out early
196 cc-check-function-in-lib iconv iconv
197
198 # Helper for OpenSSL checking
199 proc check-for-openssl {msg {cflags {}} {libs {-lssl -lcrypto}}} {
200 msg-checking "Checking for $msg..."
201 set rc 0
202 if {[is_mingw]} {
@@ -458,11 +461,10 @@
461 # Last resort, may be Windows
462 if {[is_mingw]} {
463 define-append LIBS -lwsock32
464 }
465 }
 
466 cc-check-functions utime
467 cc-check-functions usleep
468 cc-check-functions strchrnul
469
470 # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
471

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button