diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-04-05 09:20:46 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-04-05 09:20:46 +1000 |
commit | 6e2401a027c4be0fb20b007207b3a89fd226561b (patch) | |
tree | 649419deec06b9193581ae0b7bfcd72319b2b854 | |
parent | a4adf6021e817dc0dd6f1028f0b4f9a7abbeae5a (diff) | |
download | jimtcl-6e2401a027c4be0fb20b007207b3a89fd226561b.zip jimtcl-6e2401a027c4be0fb20b007207b3a89fd226561b.tar.gz jimtcl-6e2401a027c4be0fb20b007207b3a89fd226561b.tar.bz2 |
build: Use $libdir rather than $prefix/lib
Makes it easier to override
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | auto.def | 2 | ||||
-rw-r--r-- | build-jim-ext.in | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -271,7 +271,7 @@ cc-with {-includes fcntl.h} { cc-check-lfs cc-check-functions fseeko ftello -define TCL_LIBRARY [get-define prefix]/lib/jim +define TCL_LIBRARY [get-define libdir]/jim lassign [split [get-define host] -] host_cpu host_vendor host_os # Scrub revision from the host_os diff --git a/build-jim-ext.in b/build-jim-ext.in index ce9ddf6..b312bee 100644 --- a/build-jim-ext.in +++ b/build-jim-ext.in @@ -41,7 +41,7 @@ for {set i 0} {$i < [llength $argv]} {incr i} { set cross 1 } --install { - # Install to $DESTDIR/@prefix@/lib/jim + # Install to $DESTDIR/@libdir@/jim set install 1 } --static { @@ -225,7 +225,7 @@ if {$static} { load ./$target } if {$install} { - set dest [env DESTDIR ""]@prefix@/lib/jim + set dest [env DESTDIR ""]@libdir@/jim puts "Install: $target => $dest" file mkdir $dest file copy $target $dest/$target |