1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-22 10:36:01 +00:00
parent 13b5682cc6
commit b2c27e0dc5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549570
14 changed files with 144 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= libsml
PORTVERSION= 0.1.1
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= mail+freebsd@gerritbeine.de

View File

@ -0,0 +1,11 @@
--- test/src/sml_boolean_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_boolean_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_boolean);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_boolean) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_buffer_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_buffer_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_buffer);
int buffer_len = 512;
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_buffer) {
buf = sml_buffer_init(buffer_len);

View File

@ -0,0 +1,11 @@
--- test/src/sml_file_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_file_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_file);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_file) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_get_profile_pack_request_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_get_profile_pack_request_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_get_profile_pack_request);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_get_profile_pack_request) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_list_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_list_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_list);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_list) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_message_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_message_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_message);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_message) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_number_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_number_test.c
@@ -23,7 +23,7 @@
TEST_GROUP(sml_number);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_number) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_octet_string_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_octet_string_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_octet_string);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_octet_string) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_open_request_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_open_request_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_open_request);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_open_request) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_status_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_status_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_status);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_status) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_time_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_time_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_time);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_time) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_tree_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_tree_test.c
@@ -23,7 +23,7 @@
TEST_GROUP(sml_tree);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_tree) {
buf = sml_buffer_init(512);

View File

@ -0,0 +1,11 @@
--- test/src/sml_value_test.c.orig 2018-01-25 17:04:21 UTC
+++ test/src/sml_value_test.c
@@ -22,7 +22,7 @@
TEST_GROUP(sml_value);
-sml_buffer *buf;
+extern sml_buffer *buf;
TEST_SETUP(sml_value) {
buf = sml_buffer_init(512);