Fossil SCM

Alternative to check-in [a098707051568156] for getting the --static option to ./configure working on pkg-config based systems.

drh 2020-12-15 01:13 trunk
Commit 6f9d265234e92e25ae6ddd055b9d78fd010642a52a33527a17252f3c28c8b3eb
1 file changed +8 -1
+8 -1
--- auto.def
+++ auto.def
@@ -586,11 +586,13 @@
586586
}
587587
cc-check-function-in-lib sin m
588588
589589
# Check for the FuseFS library
590590
if {[opt-bool fusefs]} {
591
- if {[cc-check-function-in-lib fuse_mount fuse]} {
591
+ if {[opt-bool static]} {
592
+ msg-result "FuseFS support disabled due to -static"
593
+ } elseif {[cc-check-function-in-lib fuse_mount fuse]} {
592594
define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
593595
define FOSSIL_HAVE_FUSEFS 1
594596
define-append LIBS -lfuse
595597
msg-result "FuseFS support enabled"
596598
}
@@ -615,8 +617,13 @@
615617
if {[check-function-in-lib dlopen dl]} {
616618
# Some platforms (*BSD) have the dl functions already in libc and no libdl.
617619
# In such case we can link directly without -ldl.
618620
define-append LIBS [get-define lib_dlopen]
619621
}
622
+
623
+if {[opt-bool static]} {
624
+ define-append EXTRA_LDFLAGS -lpthread
625
+}
626
+
620627
621628
make-template Makefile.in
622629
make-config-header autoconfig.h -auto {USE_* FOSSIL_*}
623630
--- auto.def
+++ auto.def
@@ -586,11 +586,13 @@
586 }
587 cc-check-function-in-lib sin m
588
589 # Check for the FuseFS library
590 if {[opt-bool fusefs]} {
591 if {[cc-check-function-in-lib fuse_mount fuse]} {
 
 
592 define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
593 define FOSSIL_HAVE_FUSEFS 1
594 define-append LIBS -lfuse
595 msg-result "FuseFS support enabled"
596 }
@@ -615,8 +617,13 @@
615 if {[check-function-in-lib dlopen dl]} {
616 # Some platforms (*BSD) have the dl functions already in libc and no libdl.
617 # In such case we can link directly without -ldl.
618 define-append LIBS [get-define lib_dlopen]
619 }
 
 
 
 
 
620
621 make-template Makefile.in
622 make-config-header autoconfig.h -auto {USE_* FOSSIL_*}
623
--- auto.def
+++ auto.def
@@ -586,11 +586,13 @@
586 }
587 cc-check-function-in-lib sin m
588
589 # Check for the FuseFS library
590 if {[opt-bool fusefs]} {
591 if {[opt-bool static]} {
592 msg-result "FuseFS support disabled due to -static"
593 } elseif {[cc-check-function-in-lib fuse_mount fuse]} {
594 define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
595 define FOSSIL_HAVE_FUSEFS 1
596 define-append LIBS -lfuse
597 msg-result "FuseFS support enabled"
598 }
@@ -615,8 +617,13 @@
617 if {[check-function-in-lib dlopen dl]} {
618 # Some platforms (*BSD) have the dl functions already in libc and no libdl.
619 # In such case we can link directly without -ldl.
620 define-append LIBS [get-define lib_dlopen]
621 }
622
623 if {[opt-bool static]} {
624 define-append EXTRA_LDFLAGS -lpthread
625 }
626
627
628 make-template Makefile.in
629 make-config-header autoconfig.h -auto {USE_* FOSSIL_*}
630

Keyboard Shortcuts

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