about summary refs log tree commit diff
path: root/sysdeps/alpha/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/Makefile')
-rw-r--r--sysdeps/alpha/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile
index a9f12d1396..6aaedea6fb 100644
--- a/sysdeps/alpha/Makefile
+++ b/sysdeps/alpha/Makefile
@@ -30,7 +30,9 @@ endif	# gnulib
 
 ifeq ($(subdir),elf)
 # The ld.so code cannot use literals until it self-relocates.
+ ifeq ($(elf),yes)
 CFLAGS-rtld.c = -mbuild-constants
+ endif
 # The rest of ld.so shouldn't use FP regs for block moves so
 # that the lazy link trampoline doesn't have to save them.
 sysdep-CFLAGS += -mno-fp-regs