./configure --disable-visiblity is default on cygwin.

This commit is contained in:
Robin Mills 2012-07-10 06:48:09 +00:00
parent bdbdbf2360
commit 6788fe8ff6
2 changed files with 9 additions and 2 deletions

View File

@ -100,9 +100,14 @@ fi
AC_SUBST(DEP_TRACKING,$DEP_TRACKING)
AC_MSG_CHECKING([whether to enable symbol visibility support])
visibility=yes
# visibility support in cygwin/ming generates 1000's of warning, set off by default
case "$host_os" in
*mingw* | *cygwin*) visiblity=no ;;
esac
AC_ARG_ENABLE(visibility,
[ --disable-visibility do not use symbol visibility support ],
VISIBILITY_SUPPORT=$enableval, VISIBILITY_SUPPORT=yes)
VISIBILITY_SUPPORT=$enableval, VISIBILITY_SUPPORT=$visiblity)
AC_MSG_RESULT($VISIBILITY_SUPPORT)
if test "$VISIBILITY_SUPPORT" = "yes"; then
# Sun Studio C++ compiler (which apparently ignores -fvisibility-inlines-hidden)

View File

@ -188,6 +188,8 @@ EXIV2API void dumpLibraryInfo(std::ostream& os)
char proc[100];
sprintf(proc,"/proc/%d/exe", getpid());
path_l = readlink (proc, path, path_max);
#elif defined(__CYGWIN__)
bReport=true;
#endif
if ( bReport ) {
@ -195,7 +197,7 @@ EXIV2API void dumpLibraryInfo(std::ostream& os)
if ( path_l > 0 && path_l < path_max ) {
path[path_l]=0;
os << szBuilder << "executable=" << path << std::endl;
os << szBuilder << "date=\"" << __DATE__ << "\",time=" __TIME__ << std::endl;
}
os << szBuilder << "date=\"" << __DATE__ << "\",time=" __TIME__ << std::endl;
}
}