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