Index: ace-5.7.7/ACE_wrappers/MPC/templates/makedll.mpt =================================================================== --- ace-5.7.7.orig/ACE_wrappers/MPC/templates/makedll.mpt 2011-04-06 18:05:56.960637003 +0200 +++ ace-5.7.7/ACE_wrappers/MPC/templates/makedll.mpt 2011-04-06 18:07:19.921574506 +0200 @@ -256,7 +256,7 @@ linux { gnumake = 1 - ldlibs = -ldl $(subst lib,-l,$(sort $(basename $(notdir $(wildcard /usr/lib/librt.so /lib/librt.so))))) -lpthread + ldlibs = -ldl $(subst lib,-l,$(sort $(basename $(notdir $(wildcard /usr/lib/librt.so /lib/*/librt.so /lib/librt.so))))) -lpthread extracppflags = -D_REENTRANT } Index: ace-5.7.7/ACE_wrappers/include/makeinclude/platform_linux.GNU =================================================================== --- ace-5.7.7.orig/ACE_wrappers/include/makeinclude/platform_linux.GNU 2011-04-06 18:05:57.132512002 +0200 +++ ace-5.7.7/ACE_wrappers/include/makeinclude/platform_linux.GNU 2011-04-06 18:07:19.991887003 +0200 @@ -80,7 +80,7 @@ ifeq ($(threads),1) LIBS += -lpthread # look for the rt library in the usual places - LIBS += $(shell test "`ls -L /usr/lib*/librt.so* /lib*/librt.so*`" && echo -lrt) + LIBS += $(shell test "`ls -L /usr/lib*/librt.so* /lib/*/librt.so* /lib*/librt.so*`" && echo -lrt) endif ifeq ($(optimize),1) Index: ace-5.7.7/ACE_wrappers/include/makeinclude/platform_linux_common.GNU =================================================================== --- ace-5.7.7.orig/ACE_wrappers/include/makeinclude/platform_linux_common.GNU 2011-04-06 18:05:57.046574503 +0200 +++ ace-5.7.7/ACE_wrappers/include/makeinclude/platform_linux_common.GNU 2011-04-06 18:07:19.937199506 +0200 @@ -74,7 +74,7 @@ endif PLATFORM_AIO_SUPPORT := \ - $(shell test "`ls -L /usr/lib*/librt.so* /lib*/librt.so*`" && echo -DACE_HAS_AIO_CALLS) + $(shell test "`ls -L /usr/lib*/librt.so* /lib/*/librt.so* /lib*/librt.so*`" && echo -DACE_HAS_AIO_CALLS) GNU_LIBPTHREAD_VERSION := $(shell getconf GNU_LIBPTHREAD_VERSION 2> /dev/null || echo Unknown) ifeq (NPTL, $(word 1,$(GNU_LIBPTHREAD_VERSION)))