diff options
Diffstat (limited to 'mach')
-rw-r--r-- | mach/Machrules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mach/Machrules b/mach/Machrules index 93916a0a27..f81017958d 100644 --- a/mach/Machrules +++ b/mach/Machrules @@ -195,4 +195,10 @@ ifdef interface-library $(interface-library)-routines = $(interface-routines) extra-libs += $(interface-library) +# Avoid -lmachuser requiring -lc, which may not be built yet. If the +# shared object is absent, ld may choose a static library someplace and +# produce a bogus libmachuser.so. +interface.so = $(interface-library:lib%=%.so) +LDFLAGS-$(interface.so) = -nostdlib + endif |