diff options
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/Makefile | 6 | ||||
-rw-r--r-- | sysdeps/mach/hurd/Makefile | 14 |
2 files changed, 5 insertions, 15 deletions
diff --git a/sysdeps/mach/Makefile b/sysdeps/mach/Makefile index a179b1f83e..2f2a12cb3b 100644 --- a/sysdeps/mach/Makefile +++ b/sysdeps/mach/Makefile @@ -25,11 +25,7 @@ ifneq (mach,$(subdir)) # Subdirectories other than mach/ might use the generated Mach headers. # So make sure we get a chance to run in mach/ to make them before all else. -ifdef objpfx -mach-objpfx = $(objpfx) -else -mach-objpfx = $(..)mach/ -endif +mach-objpfx = $(common-objpfx)mach/ # These are all the generated files that <mach.h> includes. mach-before-compile := $(mach-objpfx)mach-shortcuts.h \ diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile index 974edfc07c..c9ac18b426 100644 --- a/sysdeps/mach/hurd/Makefile +++ b/sysdeps/mach/hurd/Makefile @@ -41,11 +41,7 @@ ifeq (,$(filter mach hurd,$(subdir))) # (But we don't want to do this in mach/, because hurd/ needs some things # there, and we know mach/ doesn't need anything from hurd/.) -ifdef objpfx -hurd-objpfx = $(objpfx) -else -hurd-objpfx = $(..)hurd/ -endif +hurd-objpfx = $(common-objpfx)hurd/ # These are all the generated headers that <hurd.h> includes. before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,io fs process) @@ -104,12 +100,10 @@ endif # For the shared library, we don't need to do the linker script machination. # Instead, we specify the required libraries when building the shared object. -rpcuserlibs := $(firstword $(objdir) $(..)mach)/libmachuser.so \ - $(firstword $(objdir) $(..)hurd)/libhurduser.so +rpcuserlibs := $(common-objpfx)mach/libmachuser.so \ + $(common-objpfx)hurd/libhurduser.so $(common-objpfx)libc.so: $(rpcuserlibs) -ifndef objpfx -rpath-link += $(..)mach:$(..)hurd -endif +rpath-link += $(common-objpfx)mach:$(common-objpfx)hurd # The RPC stubs from these libraries are needed in building the dynamic # linker, too. It must be self-contained, so we link the needed PIC |