summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-08-16 01:07:14 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-08-16 01:07:14 (GMT)
commitb7c8011aa83a0582a778a0c155aecf54c0433d41 (patch)
treefe2bc17978190219b47169065ff1176ab7e8c733 /src
parentb60d17597b6faabdfdc3742199ac7b48ebe9326b (diff)
downloadmxe-b7c8011aa83a0582a778a0c155aecf54c0433d41.zip
mxe-b7c8011aa83a0582a778a0c155aecf54c0433d41.tar.gz
mxe-b7c8011aa83a0582a778a0c155aecf54c0433d41.tar.bz2
libatomic_ops libsignal-protocol-c libssh: fix gcc4 build
Diffstat (limited to 'src')
-rw-r--r--src/libatomic_ops.mk2
-rw-r--r--src/libsignal-protocol-c.mk2
-rw-r--r--src/libssh.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libatomic_ops.mk b/src/libatomic_ops.mk
index 03db7cc..6b36c14 100644
--- a/src/libatomic_ops.mk
+++ b/src/libatomic_ops.mk
@@ -29,7 +29,7 @@ define $(PKG)_BUILD
# compile test
'$(TARGET)-gcc' \
- -W -Wall -Werror -pedantic \
+ -W -Wall -Werror -pedantic -std=c99 \
'$(SOURCE_DIR)/tests/test_stack.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' atomic_ops_gpl --cflags --libs`
endef
diff --git a/src/libsignal-protocol-c.mk b/src/libsignal-protocol-c.mk
index 9e37306..744e49c 100644
--- a/src/libsignal-protocol-c.mk
+++ b/src/libsignal-protocol-c.mk
@@ -16,7 +16,7 @@ define $(PKG)_BUILD
$(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1
'$(TARGET)-gcc' \
- -W -Wall -Werror -pedantic \
+ -W -Wall -Werror -pedantic -std=c99 \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libsignal-protocol-c.exe' \
`'$(TARGET)-pkg-config' libsignal-protocol-c --cflags --libs`
endef
diff --git a/src/libssh.mk b/src/libssh.mk
index 9700fe0..afe808c 100644
--- a/src/libssh.mk
+++ b/src/libssh.mk
@@ -55,7 +55,7 @@ define $(PKG)_BUILD
# compile test
'$(TARGET)-gcc' \
- -W -Wall -Werror -pedantic $($(PKG)_EXTRA_WARNINGS) \
+ -W -Wall -Werror -pedantic -std=c99 $($(PKG)_EXTRA_WARNINGS) \
$(SOURCE_DIR)/examples/{authentication.c,knownhosts.c,connect_ssh.c,exec.c} \
-o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`