Permalink
Browse files

Support visibility change in Makefile and autotools

  • Loading branch information...
j-rivero committed Nov 10, 2017
1 parent a5a3d34 commit a38c89691ff68a3a328d34a0a6b4501cf6ca5d15
Showing with 5 additions and 9 deletions.
  1. +0 −1 CMakeLists.txt
  2. +1 −6 src/CMakeLists.txt
  3. +1 −1 src/Makefile
  4. +2 −0 src/Makefile.am
  5. +1 −1 src/ccd/vec3.h
View
@@ -17,7 +17,6 @@ set(CCD_SOVERSION 2)
# Include GNUInstallDirs to get canonical paths
include(GNUInstallDirs)
include(CTest)
include(GenerateExportHeader)
option(BUILD_DOCUMENTATION "Build the documentation" OFF)
View
@@ -21,6 +21,7 @@ configure_file(ccd/config.h.cmake.in ccd/config.h)
set(CCD_INCLUDES
ccd/ccd.h
ccd/compiler.h
ccd/ccd_export.h
ccd/quat.h
ccd/vec3.h
"${CMAKE_CURRENT_BINARY_DIR}/ccd/config.h")
@@ -85,9 +86,3 @@ endif()
if(NOT WIN32 AND BUILD_TESTING AND NOT CCD_HIDE_ALL_SYMBOLS)
add_subdirectory(testsuites)
endif()
get_property(type TARGET ccd PROPERTY TYPE)
generate_export_header(ccd)
install(FILES ${PROJECT_BINARY_DIR}/src/ccd_export.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
View
@@ -17,7 +17,7 @@
-include Makefile.include
CFLAGS += -I.
CFLAGS += -I. -fvisibility=hidden
TARGETS = libccd.a
OBJS = ccd.o mpr.o support.o vec3.o polytope.o
View
@@ -6,6 +6,7 @@ libccd_la_SOURCES = alloc.h \
ccd/compiler.h \
dbg.h \
ccd.c ccd/ccd.h \
ccd/ccd_export.h \
list.h \
polytope.c polytope.h \
ccd/quat.h \
@@ -14,3 +15,4 @@ libccd_la_SOURCES = alloc.h \
vec3.c ccd/vec3.h \
mpr.c
libccd_la_CFLAGS = -fvisibility=hidden
View
@@ -23,7 +23,7 @@
#include <stdlib.h>
#include <ccd/compiler.h>
#include <ccd/config.h>
#include "ccd_export.h"
#include <ccd/ccd_export.h>
#ifdef __cplusplus
extern "C" {

0 comments on commit a38c896

Please sign in to comment.