How to config the GDC on linux target for ARM linux?
FrankLike via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Dec 28 07:23:19 PST 2015
I've gotten the answer: use the difference 'gcc' for c code.
-------------------------------For x86_64:
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mcp23x0817.d
mcp3002.d mcp3004.d mcp3422.d mcp4802.d pcf8574.d pcf8591.d
sn3218.d softPwm.d softServo.d softTone.d sr595.d wiringPi.d
wiringPiI2C.d wiringPiSPI.d wiringSerial.d wiringShift.d
wpiExtensions.d"
ofiles="drcSerial.o max31855.o max5322.o mcp23008.o mcp23016.o
mcp23017.o mcp23s08.o mcp23s17.o mcp3002.o mcp3004.o mcp3422.o
mcp4802.o pcf8574.o pcf8591.o piHiPri.o piThread.o sn3218.o
softPwm.o softServo.o softTone.o sr595.o wiringPi.o wiringPiI2C.o
wiringPiSPI.o wiringSerial.o wiringShift.o wpiExtensions.o"
gcc -c *.c -m64
/opt/x86_64-pc-linux-gnu/bin/x86_64-linux-gnu-gdc -o my my.d
$ofiles -I$dfiles
--------------------------------For ARM:
#! /bin/sh
cfiles="wiringPi.c max31855.c max5322.c mcp23008.c mcp23016.c
mcp23017.c mcp23s08.c mcp23s17.c mcp3002.c mcp3004.c mcp3422.c
mcp4802.c pcf8574.c pcf8591.c sn3218.c softPwm.c softServo.c
softTone.c sr595.c wiringPiI2C.c wiringPiSPI.c wiringSerial.c
wiringShift.c wpiExtensions.c"
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mcp23x0817.d
mcp3002.d mcp3004.d mcp3422.d mcp4802.d pcf8574.d pcf8591.d
sn3218.d softPwm.d softServo.d softTone.d sr595.d wiringPi.d
wiringPiI2C.d wiringPiSPI.d wiringSerial.d wiringShift.d
wpiExtensions.d"
ofiles="drcSerial.o max31855.o max5322.o mcp23008.o mcp23016.o
mcp23017.o mcp23s08.o mcp23s17.o mcp3002.o mcp3004.o mcp3422.o
mcp4802.o pcf8574.o pcf8591.o piHiPri.o piThread.o sn3218.o
softPwm.o softServo.o softTone.o sr595.o wiringPi.o wiringPiI2C.o
wiringPiSPI.o wiringSerial.o wiringShift.o wpiExtensions.o"
/opt/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-gcc -marm -c $cfiles
/opt/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-gdc -o my my.d $ofiles -I$dfiles
More information about the Digitalmars-d-learn
mailing list