summaryrefslogtreecommitdiff
path: root/sys-apps/memtest86+/files/memtest86+-5.01-objcopy.patch
blob: 5effe20027a949c99b92c2e206922d37598695a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Allow 'objcopy' override with user's OBJCOPY.
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@
 # Path for the floppy disk device
 #
 FDISK=/dev/fd0
+OBJCOPY=objcopy
 
 CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \
 	-ffreestanding -fPIC $(SMP_FL) -fno-stack-protector 
@@ -30,7 +31,7 @@ memtest_shared: $(OBJS) memtest_shared.lds Makefile
 	$(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS)
 
 memtest_shared.bin: memtest_shared
-	objcopy -O binary $< memtest_shared.bin
+	$(OBJCOPY) -O binary $< memtest_shared.bin
 
 memtest: memtest_shared.bin memtest.lds
 	$(LD) -s -T memtest.lds -b binary memtest_shared.bin -o $@