components/gd2/patches/005-fix-tests.patch
author Rich Burridge <rich.burridge@oracle.com>
Thu, 07 Jan 2016 13:22:27 -0800
changeset 5243 cb29cf94919d
parent 3536 9d36b040ae85
permissions -rw-r--r--
PSARC 2015/152 serf - High-performance asynchronous HTTP client library 20780708 We should integrate serf into Solaris
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3536
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Changes needed to get gd2 tests working.
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
This change needs to be further evaluated to see if it should be passed
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
upstream.
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
--- tests/gdimageline/CMakeLists.txt.orig	2014-12-10 16:08:04.845700212 -0800
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
+++ tests/gdimageline/CMakeLists.txt	2014-12-10 16:07:38.129451205 -0800
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
@@ -7,6 +7,6 @@
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
 
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
 FOREACH(test_name ${TESTS_FILES})
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
 	add_executable(${test_name} "${test_name}.c")
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
-	target_link_libraries (${test_name} gdTest ${GD_LIB})
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
+	target_link_libraries (${test_name} gdTest ${GD_LIB} "-lm")
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
 	ADD_TEST(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
 ENDFOREACH(test_name)