projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
postgresql-socket3: Handle unix sockets db names
[clsql.git]
/
uffi
/
Makefile
diff --git
a/uffi/Makefile
b/uffi/Makefile
index 6f4467ac25f7bffccb185f7e03fb48d6a87e2d69..7599380f1c047befc356d12833a898ef84cdaad2 100644
(file)
--- a/
uffi/Makefile
+++ b/
uffi/Makefile
@@
-25,7
+25,7
@@
dylib=$(base).dylib
ifneq ($(OS_DPKG_BUILDFLAGS),0)
CFLAGS:=$(CFLAGS) $(shell dpkg-buildflags --get CFLAGS)
ifneq ($(OS_DPKG_BUILDFLAGS),0)
CFLAGS:=$(CFLAGS) $(shell dpkg-buildflags --get CFLAGS)
- LDFLAGS:=$(LDFLAGS) $(shell
dpkg-buildflags --get LDFLAGS | sed "/-Wl,\(.*\)/ s//\1/
")
+ LDFLAGS:=$(LDFLAGS) $(shell
DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie dpkg-buildflags --get LDFLAGS | sed "s/-Wl\|,/ /ig
")
endif
endif
@@
-55,11
+55,11
@@
else
else
ifneq ($(OS_LINUX64),0)
gcc $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
else
ifneq ($(OS_LINUX64),0)
gcc $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
-
ld $(LDFLAGS) -shared
-soname=$(base) -lc $(object) -o $(shared64_lib)
+
gcc $(LDFLAGS) -fPIC -shared -Wl,
-soname=$(base) -lc $(object) -o $(shared64_lib)
rm -f $(object)
@echo "Ensure that you have multiarch i386 build tools if you want to build 32-bit library"
-gcc -m32 $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
rm -f $(object)
@echo "Ensure that you have multiarch i386 build tools if you want to build 32-bit library"
-gcc -m32 $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
- -
ld -melf_i386 $(LDFLAGS) -shared
-soname=$(base) -lc $(object) -o $(shared_lib)
+ -
gcc -m32 $(LDFLAGS) -fPIC -shared -Wl,
-soname=$(base) -lc $(object) -o $(shared_lib)
else
gcc -fPIC -DPIC -c $(source) -o $(object)
ld -shared -soname=$(base) -lc $(object) -o $(shared_lib)
else
gcc -fPIC -DPIC -c $(source) -o $(object)
ld -shared -soname=$(base) -lc $(object) -o $(shared_lib)