00db10
In order to ensure ABI compatibility between staged builds it was
00db10
required that rtkaio/Makefile define both IN_MODULE=MODULE_librt
00db10
and IS_IN_librt in order to get both the right set of versioned
00db10
symbols and enable cancellation correctly. The changes to rtkaio/Makefile
00db10
are Red Hat internal changes.
00db10
00db10
commit 286663c34b006c1409df4a71f89d6d4d5d01df09
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Wed Nov 19 12:15:01 2014 +0530
00db10
00db10
    Fix -Wundef warning in SHLIB_COMPAT
00db10
    
00db10
    Replace the IS_IN_##lib with IS_IN(lib).  Verified that the generated
00db10
    code remains the same.
00db10
    
00db10
    	* include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
00db10
Index: glibc-2.17-c758a686/include/shlib-compat.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/include/shlib-compat.h
00db10
+++ glibc-2.17-c758a686/include/shlib-compat.h
00db10
@@ -45,7 +45,7 @@
00db10
 # define SHLIB_COMPAT(lib, introduced, obsoleted)			      \
00db10
   _SHLIB_COMPAT (lib, introduced, obsoleted)
00db10
 # define _SHLIB_COMPAT(lib, introduced, obsoleted)			      \
00db10
-  ((IS_IN_##lib - 0)							      \
00db10
+  (IS_IN (lib)								      \
00db10
    && (!(ABI_##lib##_##obsoleted - 0)					      \
00db10
        || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))))
00db10
 
00db10
Index: glibc-2.17-c758a686/rtkaio/Makefile
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/rtkaio/Makefile
00db10
+++ glibc-2.17-c758a686/rtkaio/Makefile
00db10
@@ -69,7 +69,8 @@ CFLAGS-kaio_librt-cancellation.c = -fasy
00db10
 
00db10
 LDFLAGS-rtkaio.so = -Wl,-soname=lib$(libprefix)rt.so$(librt.so-version) \
00db10
 		    -Wl,--enable-new-dtags,-z,nodelete
00db10
-CPPFLAGS-librtkaio += -DIS_IN_librt=1 -I$(..)rt
00db10
+CPPFLAGS-librtkaio += -UIN_MODULE -DIN_MODULE=MODULE_librt \
00db10
+		      -UIS_IN_librt -DIS_IN_librt=1 -I$(..)rt
00db10
 
00db10
 rpath-dirs := $(patsubst rt,rtkaio,$(rpath-dirs))
00db10