Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af1d9f1

Browse files
committed
Recompiled and tested PostgreSQL shared object (Linux) optimized for size (gcc flag -Os).
1 parent d1e3596 commit af1d9f1

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
LIBDIR=/tmp
22

33
8.4:
4-
gcc -Wall -I/usr/include/postgresql/8.4/server -O1 -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
4+
gcc -Wall -I/usr/include/postgresql/8.4/server -Os -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
55
strip -sx lib_postgresqludf_sys.so
66
cp -f lib_postgresqludf_sys.so $(LIBDIR)/lib_postgresqludf_sys.so
77

88
8.3:
9-
gcc -Wall -I/usr/include/postgresql/8.3/server -O1 -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
9+
gcc -Wall -I/usr/include/postgresql/8.3/server -Os -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
1010
strip -sx lib_postgresqludf_sys.so
1111
cp -f lib_postgresqludf_sys.so $(LIBDIR)/lib_postgresqludf_sys.so
1212

1313
8.2:
14-
gcc -Wall -I/usr/include/postgresql/8.2/server -O1 -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
14+
gcc -Wall -I/usr/include/postgresql/8.2/server -Os -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so
1515
strip -sx lib_postgresqludf_sys.so
1616
cp -f lib_postgresqludf_sys.so $(LIBDIR)/lib_postgresqludf_sys.so
4 Bytes
Binary file not shown.
-556 Bytes
Binary file not shown.
-548 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)