diff options
| author | Omar Rizwan <omar@omar.website> | 2023-06-16 15:28:32 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-06-16 15:28:32 +0000 |
| commit | 386526612e3895214df7b5969bf46419c2eb18db (patch) | |
| tree | a965b78aa747c7626ad9f61721ba1f1c55fcce39 /virtual-programs | |
| parent | Fix undef behavior in images.folk. Disable process log by default (diff) | |
| download | folk-386526612e3895214df7b5969bf46419c2eb18db.tar.gz folk-386526612e3895214df7b5969bf46419c2eb18db.zip | |
Load libjpeg on Darwin
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/images.folk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtual-programs/images.folk b/virtual-programs/images.folk index 0af567df..b821f9b0 100644 --- a/virtual-programs/images.folk +++ b/virtual-programs/images.folk @@ -25,7 +25,7 @@ namespace eval ::image { } set cc [c create] - $cc cflags -L[lindex [exec /usr/sbin/ldconfig -p | grep libjpeg] end] + c loadlib [expr {$tcl_platform(os) eq "Darwin" ? "/opt/homebrew/lib/libjpeg.dylib" : [lindex [exec /usr/sbin/ldconfig -p | grep libjpeg] end]}] source "pi/cUtils.tcl" defineImageType $cc $cc include <stdlib.h> |
