Skip to content

Commit 562e46a

Browse files
committed
Ship the PG18 macOS FDW module as .so (inst handles .dylib)
On macOS PG18, PGXS builds steampipe_postgres_fdw.dylib (DLSUFFIX=.dylib), but the fdw Makefile `inst` target hardcoded `cp steampipe_postgres_fdw.so`, so the build-<PLATFORM> copy failed ("No such file or directory") and the draft-release build aborted (compile+link had succeeded). `inst` now copies the .dylib to build-<PLATFORM>/steampipe_postgres_fdw.so when present (falling back to .so on Linux / PG<=17 macOS), matching the .so-pinned control file + the CLI's FdwBinaryFileName - the proven darwin/arm64 config. Linux unaffected.
1 parent 821d826 commit 562e46a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fdw/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ inst:
5858
mkdir -p ../build-${PLATFORM}
5959
rm -f ../build-${PLATFORM}/*
6060

61-
cp steampipe_postgres_fdw.so ../build-${PLATFORM}
61+
@if [ -f steampipe_postgres_fdw.dylib ]; then cp steampipe_postgres_fdw.dylib ../build-${PLATFORM}/steampipe_postgres_fdw.so; else cp steampipe_postgres_fdw.so ../build-${PLATFORM}/steampipe_postgres_fdw.so; fi
6262
cp steampipe_postgres_fdw.control ../build-${PLATFORM}
6363
cp steampipe_postgres_fdw--1.0.sql ../build-${PLATFORM}
64-
65-
rm steampipe_postgres_fdw.so
64+
65+
rm -f steampipe_postgres_fdw.so steampipe_postgres_fdw.dylib
6666
rm steampipe_postgres_fdw.a
6767
rm steampipe_postgres_fdw.h
6868

0 commit comments

Comments
 (0)