Fossil SCM
Don't use -lz_shared on MorphOS. It is not meant to be used with ixemul and crashes.
Commit
c462e4a87da4bc40961fc17a625c11c02a1d379800933df72e828ccd63cfed0f
Parent
15619e620badba6…
1 file changed
+3
-4
M
auto.def
+3
-4
| --- auto.def | ||
| +++ auto.def | ||
| @@ -428,26 +428,25 @@ | ||
| 428 | 428 | } |
| 429 | 429 | if {![info exists cfound]} { |
| 430 | 430 | user-error "zlib.h not found; either install it or specify its location via --with-zlib" |
| 431 | 431 | } |
| 432 | 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}]} { | |
| 433 | + if {[cc-with [list -cflags "$cfound $lcheck"] {check-function-in-lib inflateEnd z}]} { | |
| 435 | 434 | if {$lcheck eq ""} { |
| 436 | 435 | msg-result "Linked to zlib via default library path" |
| 437 | 436 | } else { |
| 438 | 437 | define-append EXTRA_LDFLAGS "$lcheck" |
| 439 | 438 | msg-result "Linked to zlib via $lcheck" |
| 440 | 439 | } |
| 441 | - if {![check-function-in-lib compressBound $lib]} { | |
| 440 | + if {![check-function-in-lib compressBound z]} { | |
| 442 | 441 | puts "Notice: disabling zlib compression in the SQL shell" |
| 443 | 442 | define-append SQLITE_OPTIONS_EXT {-USQLITE_HAVE_ZLIB} |
| 444 | 443 | } |
| 445 | 444 | break |
| 446 | 445 | } |
| 447 | 446 | } |
| 448 | - set ::zlib_lib "-l$lib" | |
| 447 | + set ::zlib_lib -lz | |
| 449 | 448 | } |
| 450 | 449 | }; # handle-zlib |
| 451 | 450 | handle-zlib |
| 452 | 451 | |
| 453 | 452 | # |
| 454 | 453 |
| --- 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 |