-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues flagged by Lintian. (#200)
* src: Add missing mptcpize LDFLAGS. Hardening linker flags such as "-pie" were missing for the `mptcpize' program. Explicitly set mptcpize LDFLAGS accordingly. * src: Do not add '-fPIE' to libmptcpwrap CFLAGS. Prevent '-fPIE' from beging added to the libmptcpwrap CFLAGS. '-fPIE' is meant for executables, not shared libraries. * src: Start mptcpd after systemd multi-user.target. Lintian complains about the "WantedBy=socket.target" in the mptcpd `mptcp.service' systemd unit file. Use "multi-user.target" instead. * configure: Avoid undefining _FORTIFY_SOURCE. The configure script ended up causing _FORTIFY_SOURCE to be undefined if the user explicitly adds _FORTIFY_SOURCE=2 to CPPFLAGS. For example, running the configure script like so: CPPFLAGS=-D_FORTIFY_SOURCE=2 ./configure ultimately caused CPPFLAGS to contain "-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE" instead of "-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" due to the AX_APPEND_FLAG() Autoconf Archive macro behavior of not appending duplicate flags. Only append -D_FORTIFY_SOURCE=2 to CPPFLAGS if the user hasn't defined _FORTIFY_SOURCE rather than attempt to override the user provided value. This is more in line with Autoconf conventions as well. * src: Install libmptcpwrap in ${libdir}/mptcpize. Install the libmptcpwrap library in a ${libdir}/mptcpize instead of ${libdir}/mptcpd to differentiate it from mptcpd plugins. Closes #202.
- Loading branch information
Ossama Othman
authored
Jan 28, 2022
1 parent
4927ef7
commit 7c43164
Showing
3 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters