Changeset 1007


Ignore:
Timestamp:
Feb 20, 2017, 12:29:26 AM (8 years ago)
Author:
dmik
Message:

rpm: Get rid of ignored visibility(hidden) and fPIC on OS/2.

This fixes tons of annoying warnings during compilation.

Location:
rpm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rpm/trunk/configure.ac

    r594 r1007  
    5050        CFLAGS=$old_cflags
    5151    done
    52     CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS"
     52    case "$host" in
     53        *os2*) ;;
     54        *)
     55           CFLAGS="$CFLAGS -fPIC -DPIC" ;;
     56    esac
     57    CFLAGS="$CFLAGS -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS"
    5358fi
    5459export CFLAGS
     
    6772if test "$a" = "-rwxr-xr-x"; then
    6873    AC_MSG_RESULT(yes)
    69     FIXPERMS=a+rX,u+w,g-w,o-w 
     74    FIXPERMS=a+rX,u+w,g-w,o-w
    7075else
    7176    AC_MSG_RESULT(no (tell your OS vendor about GNU fileutils))
    72     FIXPERMS=a+r,u+w,g-w,o-w 
     77    FIXPERMS=a+r,u+w,g-w,o-w
    7378fi
    7479AC_SUBST(FIXPERMS)
     
    128133AC_PATH_PROG(__PERL, perl, /usr/bin/perl, $MYPATH)
    129134AC_PATH_PROG(__PGP, pgp, /usr/bin/pgp, $MYPATH)
    130 AC_PATH_PROG(__PYTHON, python, /usr/bin/python, $MYPATH) 
     135AC_PATH_PROG(__PYTHON, python, /usr/bin/python, $MYPATH)
    131136AC_PATH_PROG(__RM, rm, /bin/rm, $MYPATH)
    132137AC_PATH_PROG(__RSH, rsh, /usr/bin/rsh, $MYPATH)
     
    152157dnl see if we have a mkdir that supports `-p' for rpmbuild's purposes
    153158AC_PROG_MKDIR_P
    154 if ! echo $MKDIR_P | grep -q mkdir; then 
     159if ! echo $MKDIR_P | grep -q mkdir; then
    155160  __MKDIR_P="`echo ${prefix}/lib/rpm/mkinstalldirs`"
    156161else
     
    163168
    164169#=================
    165 # Check for zlib library. 
     170# Check for zlib library.
    166171
    167172WITH_ZLIB_INCLUDE=
     
    171176  AS_IF([test -z "${WITH_ZLIB_LIB}"],[
    172177    for zlib in z gz ; do
    173       AC_CHECK_LIB(${zlib}, gzread, 
     178      AC_CHECK_LIB(${zlib}, gzread,
    174179        [WITH_ZLIB_LIB="-l${zlib}"; break])
    175180    done
     
    264269      WITH_BEECRYPT_LIB="-lbeecrypt"
    265270    ],[
    266       AC_MSG_ERROR([missing required library 'beecrypt']) 
     271      AC_MSG_ERROR([missing required library 'beecrypt'])
    267272    ])
    268273    AC_CHECK_HEADER([beecrypt/api.h], [AC_DEFINE(HAVE_BEECRYPT_API_H, 1, [Define to 1 if you have the <beecrypt/api.h> header file.])
     
    275280#=================
    276281# Check for NSS library.
    277 # We need nss.h from NSS which needs nspr.h. Unfortunately both glibc and NSS 
    278 # have a header named nss.h... so make extra check for NSS's sechash.h 
     282# We need nss.h from NSS which needs nspr.h. Unfortunately both glibc and NSS
     283# have a header named nss.h... so make extra check for NSS's sechash.h
    279284# which we use too and hopefully is slightly more unique to NSS.
    280285WITH_NSS_INCLUDE=
     
    307312      WITH_MAGIC_LIB="-lmagic"
    308313    ],[
    309       AC_MSG_ERROR([missing required library 'libmagic']) 
     314      AC_MSG_ERROR([missing required library 'libmagic'])
    310315    ])
    311316],[
    312       AC_MSG_ERROR([missing required header magic.h]) 
     317      AC_MSG_ERROR([missing required header magic.h])
    313318])
    314319
     
    379384        #endif
    380385      ])
    381     ],[ WITH_DB_LIB=-ldb ], 
     386    ],[ WITH_DB_LIB=-ldb ],
    382387      [ AC_MSG_ERROR([Berkeley DB version >= 4.5 required])
    383388    ])
     
    727732
    728733AS_IF([test "$with_acl" = yes],[
    729   dnl verification uses non-portable acl_equiv_mode() 
     734  dnl verification uses non-portable acl_equiv_mode()
    730735  AC_CHECK_HEADER([acl/libacl.h],[
    731736    AC_CHECK_LIB(acl,[acl_equiv_mode],[with_acl=yes],[
     
    804809dnl permit overriding build_vendor for "canonical rpm vendor"
    805810RPMCANONVENDOR="$build_vendor"
    806 AC_ARG_WITH([vendor], 
     811AC_ARG_WITH([vendor],
    807812  AS_HELP_STRING([--with-vendor=VENDOR], [specify rpm vendor name]),
    808813  [RPMCANONVENDOR=$withval])
    809814AC_DEFINE_UNQUOTED([RPMCANONVENDOR],["${RPMCANONVENDOR}"],[canonical vendor])
    810            
     815
    811816RPMCANONOS="$host_os_noversion"
    812817RPMCANONGNU="$host_os_gnu"
     
    816821
    817822RUNDIR="/run"
    818 AC_ARG_WITH([rundir], 
     823AC_ARG_WITH([rundir],
    819824  AS_HELP_STRING([--with-rundir=RUNDIR], [specify run-time variable directory]),
    820825  [RUNDIR=$withval])
     
    848853        rpmio/Makefile lib/Makefile build/Makefile sign/Makefile
    849854        po/Makefile.in scripts/Makefile fileattrs/Makefile
    850         misc/Makefile 
     855        misc/Makefile
    851856        doc/Makefile
    852857        python/Makefile
  • rpm/trunk/rpmio/rpmutil.h

    r375 r1007  
    9797#endif /* __GNUC__ */
    9898
    99 #if    __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
     99#if    (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && !defined(__OS2__)
    100100#  define RPM_GNUC_INTERNAL __attribute__((visibility("hidden")))
    101101#else
Note: See TracChangeset for help on using the changeset viewer.