mirror of
https://github.com/postgres/postgres.git
synced 2026-03-29 13:53:46 -04:00
This way we don't need RANLIB anymore, making it a bit simpler for the meson build to generate Makefile.global for PGXS compatibility. FreeBSD, NetBSD, OpenBSD, the only platforms where we didn't use AROPT=crs, all have supported the 's' option for a long time. On macOS we ran ranlib after installing a static library. This was added a long time ago, in58ad65ec2d. I cannot reproduce an issue in more recent macOS versions. This is removed now. Based on discussion with Tom, I left the 'touch' at the end of static libraries generation, added in826eff57c4, in place. While it looks like current versions of Apple's ar/ranlib don't need it, it was needed not too long ago. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20221005200710.luvw5evhwf6clig6@awork3.anarazel.de
7 lines
182 B
Makefile
7 lines
182 B
Makefile
export_dynamic = -Wl,-E
|
|
rpath = -Wl,-R'$(rpathdir)'
|
|
|
|
|
|
# Rule for building a shared library from a single .o file
|
|
%.so: %.o
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@
|