Commit 2a401586 authored by Mike Gabriel's avatar Mike Gabriel

Support hardened builds for nxcomp* libraries.

parent 8b432c7a
...@@ -46,6 +46,8 @@ nx-libs (2:3.5.0.29-0x2go2) UNRELEASED; urgency=medium ...@@ -46,6 +46,8 @@ nx-libs (2:3.5.0.29-0x2go2) UNRELEASED; urgency=medium
no extra settings of LD_LIBRARY_PATH is necessary. no extra settings of LD_LIBRARY_PATH is necessary.
+ Add Multi-Arch support for Debian based distro versions that + Add Multi-Arch support for Debian based distro versions that
support Multi-Arch. support Multi-Arch.
+ Support hardened builds for nxcomp* libraries.
* debian/rules: * debian/rules:
+ Backup nxcomp/VERSION file from NoMachine before replacing it with + Backup nxcomp/VERSION file from NoMachine before replacing it with
a symlink to debian/VERSION. Recreate the original file when cleaning a symlink to debian/VERSION. Recreate the original file when cleaning
......
#!/usr/bin/make -f #!/usr/bin/make -f
NULL = NULL =
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS += -O0 export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
else export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
CFLAGS += -O2 export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
endif
export LIBDIR = "/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" export LIBDIR = "/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
export INCLUDEDIR = "/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" export INCLUDEDIR = "/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment