powerpc/vdso: Link with ld.lld when requested
[sfrench/cifs-2.6.git] / arch / powerpc / kernel / vdso / Makefile
index 954974287ee7deccf4553cfee689ae0c95e956dc..096b0bf1335ffc7d73fc15bb4fe23adfc4acd68a 100644 (file)
@@ -48,6 +48,7 @@ UBSAN_SANITIZE := n
 KASAN_SANITIZE := n
 
 ccflags-y := -shared -fno-common -fno-builtin -nostdlib -Wl,--hash-style=both
+ccflags-$(CONFIG_LD_IS_LLD) += $(call cc-option,--ld-path=$(LD),-fuse-ld=lld)
 
 CC32FLAGS := -Wl,-soname=linux-vdso32.so.1 -m32
 AS32FLAGS := -D__VDSO32__ -s