Commit Graph
5 Commits
Author SHA1 Message Date
Max Lv 6b51cbb734 Update libsodium 2015-12-13 21:35:28 +09:00
Max Lv 11a4b73071 Revert "Update libsodium"
This reverts commit be20711494.
2015-12-13 20:59:25 +09:00
Max Lv be20711494 Update libsodium 2015-12-13 19:54:59 +08:00
Syrone Wong a135d9c41e libsodium: Fix _FORTIFY_SOURCE redefined issue
If we already defined `CFLAGS=-D_FORTIFY_SOURCE=1`, it will still check `-D_FORTIFY_SOURCE=2` and
add it to CPPFLAGS. In this case, we redefine `_FORTIFY_SOURCE` to both 1 and 2 if compiler accepts `-D_FORTIFY_SOURCE=2`.

Fix this issue by checking whether `_FORTIFY_SOURCE` was defined or not.
If defined, do nothing. If not, then check `-D_FORTIFY_SOURCE=2`.

BTW, OpenWrt's buildroot uses `-D_FORTIFY_SOURCE=1` for most targets by default.
2015-08-02 10:21:42 +08:00
Max Lv 930e50fcce integrate libsodium as a subproject 2014-12-13 14:34:05 +08:00