Commit Graph
12 Commits
Author SHA1 Message Date
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
Sui 8b472324e4 fix issue of SystemFunction036 not found at advapi32 when build libsodium . 2014-12-30 10:29:41 +08:00
Max Lv ce9293010e update Makefile 2014-12-16 18:26:37 +09:00
Max Lv 4638b519ae fix debian package 2014-12-14 03:29:27 +00:00
Max Lv 9c34a7d84c fix for mingw 2014-12-13 17:32:48 +08:00
Max Lv 10d9e8504f add missing file 2014-12-13 08:06:08 +00:00
Max Lv 4182056635 add configure scripts 2014-12-13 08:03:49 +00:00
Max Lv 089522277b add version.h 2014-12-13 15:54:15 +08:00
Max Lv 5ace152631 update autoconf tools 2014-12-13 06:59:06 +00:00
Max Lv f84c40dac3 update gitignore 2014-12-13 14:51:34 +08:00
Max Lv 930e50fcce integrate libsodium as a subproject 2014-12-13 14:34:05 +08:00
Max Lv bca8a499f9 integrate libsodium as a submodule 2014-12-13 11:58:13 +08:00