Commit c1a9424d authored by yoogx's avatar yoogx
Browse files

* Use gcc instead of ld for the LD macro

parent 318c993c
......@@ -8,7 +8,7 @@
CC = ucfront-gcc arm-linux-elf-gcc
CPP = ucfront-gcc arm-linux-elf-g++
TARGET_CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-elf-ld
LD = arm-linux-elf-gcc
TARGET_LDFLAGS = -Wl,-elf2flt -D__PIC__ -fpic -msingle-pic-base -mswp-byte-writes -lpthread -lrt
target-clean:
......
......@@ -9,7 +9,7 @@
CC = arm-linux-gcc
CPP = arm-linux-g++
TARGET_CFLAGS = -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-ld
LD = arm-linux-gcc
TARGET_LDFLAGS = -lpthread -lrt
target-clean:
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -D_
TARGET_LDFLAGS = -lpthread -lrt -L$(RUNTIME_PATH)/libs/linux32/ -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -18,7 +18,7 @@ TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE =
LD = arm-rtems4.10-ld
LD = arm-rtems4.10-gcc
TARGET_LDFLAGS =
target-clean:
......@@ -54,5 +54,3 @@ define bsp-post-link
$(SIZE) $@
cp $@ $(basename $@).ralf
endef
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FL
TARGET_LDFLAGS = -lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
USE_USB_BRICK=$(shell grep __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc -l)
......
......@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m64 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS
TARGET_LDFLAGS = -lpthread -lrt -m64 -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -D_WIN32 -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -std=c99 -m32
TARGET_LDFLAGS = -m32
SIMULINK_LDFLAGS = -lm
CC = i686-w64-mingw32-gcc
LD = i686-w64-mingw32-ld
LD = i686-w64-mingw32-gcc
GPROF = gprof
ifdef USE_GPROF
......
......@@ -16,7 +16,7 @@ TARGET_CFLAGS = -I$(LINUXTASTE_PATH)/output/target/usr/local/incl
TARGET_INCLUDE =
LD = i386-linux-ld
LD = i386-linux-gcc
TARGET_LDFLAGS = -L$(LINUXTASTE_PATH)/output/target/usr/local/lib -lrt -lpthread -lcomedi -lm
target-clean:
......
......@@ -27,7 +27,7 @@ TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld
LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean:
......@@ -53,5 +53,3 @@ target-objects:
else
target-objects:
endif
......@@ -27,7 +27,7 @@ TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld
LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean:
......@@ -53,5 +53,3 @@ target-objects:
else
target-objects:
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment