Fossil SCM

Don't use -lz_shared on MorphOS. It is not meant to be used with ixemul and crashes.

js 2025-06-03 21:02 morphos
Commit c462e4a87da4bc40961fc17a625c11c02a1d379800933df72e828ccd63cfed0f
1 file changed +3 -4
+3 -4
--- auto.def
+++ auto.def
@@ -428,26 +428,25 @@
428428
}
429429
if {![info exists cfound]} {
430430
user-error "zlib.h not found; either install it or specify its location via --with-zlib"
431431
}
432432
foreach lcheck [lreverse $ldtry] {
433
- if {[is_morphos] && $lcheck eq ""} {set lib z_shared} {set lib z}
434
- if {[cc-with [list -cflags "$cfound $lcheck"] {check-function-in-lib inflateEnd $lib}]} {
433
+ if {[cc-with [list -cflags "$cfound $lcheck"] {check-function-in-lib inflateEnd z}]} {
435434
if {$lcheck eq ""} {
436435
msg-result "Linked to zlib via default library path"
437436
} else {
438437
define-append EXTRA_LDFLAGS "$lcheck"
439438
msg-result "Linked to zlib via $lcheck"
440439
}
441
- if {![check-function-in-lib compressBound $lib]} {
440
+ if {![check-function-in-lib compressBound z]} {
442441
puts "Notice: disabling zlib compression in the SQL shell"
443442
define-append SQLITE_OPTIONS_EXT {-USQLITE_HAVE_ZLIB}
444443
}
445444
break
446445
}
447446
}
448
- set ::zlib_lib "-l$lib"
447
+ set ::zlib_lib -lz
449448
}
450449
}; # handle-zlib
451450
handle-zlib
452451
453452
#
454453
--- auto.def
+++ auto.def
@@ -428,26 +428,25 @@
428 }
429 if {![info exists cfound]} {
430 user-error "zlib.h not found; either install it or specify its location via --with-zlib"
431 }
432 foreach lcheck [lreverse $ldtry] {
433 if {[is_morphos] && $lcheck eq ""} {set lib z_shared} {set lib z}
434 if {[cc-with [list -cflags "$cfound $lcheck"] {check-function-in-lib inflateEnd $lib}]} {
435 if {$lcheck eq ""} {
436 msg-result "Linked to zlib via default library path"
437 } else {
438 define-append EXTRA_LDFLAGS "$lcheck"
439 msg-result "Linked to zlib via $lcheck"
440 }
441 if {![check-function-in-lib compressBound $lib]} {
442 puts "Notice: disabling zlib compression in the SQL shell"
443 define-append SQLITE_OPTIONS_EXT {-USQLITE_HAVE_ZLIB}
444 }
445 break
446 }
447 }
448 set ::zlib_lib "-l$lib"
449 }
450 }; # handle-zlib
451 handle-zlib
452
453 #
454
--- auto.def
+++ auto.def
@@ -428,26 +428,25 @@
428 }
429 if {![info exists cfound]} {
430 user-error "zlib.h not found; either install it or specify its location via --with-zlib"
431 }
432 foreach lcheck [lreverse $ldtry] {
433 if {[cc-with [list -cflags "$cfound $lcheck"] {check-function-in-lib inflateEnd z}]} {
 
434 if {$lcheck eq ""} {
435 msg-result "Linked to zlib via default library path"
436 } else {
437 define-append EXTRA_LDFLAGS "$lcheck"
438 msg-result "Linked to zlib via $lcheck"
439 }
440 if {![check-function-in-lib compressBound z]} {
441 puts "Notice: disabling zlib compression in the SQL shell"
442 define-append SQLITE_OPTIONS_EXT {-USQLITE_HAVE_ZLIB}
443 }
444 break
445 }
446 }
447 set ::zlib_lib -lz
448 }
449 }; # handle-zlib
450 handle-zlib
451
452 #
453

Keyboard Shortcuts

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