Hello,
I'm trying to set up a tiny makefile to cross compile through ubuntu hardy.
My problem is that I can't make it locate the required libs (here libm) to make
it statically linked. I have no problems to make it dynamically linked..
Is there someone who had success making the same thing?
Thank you very much
Cedric.
---------------------------------------
TARGET = logSplitter
INST_PATH = /usr/local/bin/
#path of the toolchain
CCROOT=/usr/local/src/mv-kernel/arm-none-linux-gnueabi/
LIBDIR=$(CCROOT)arm-none-linux-gnueabi/sys-root/usr/lib/
CC=$(CCROOT)bin/arm-none-linux-gnueabi-gcc
CCFLAGS = -L$(LIBDIR) -lm -Wall -O2 --save-temps -static -static-libgcc
all: $(TARGET)
$(TARGET): $(TARGET).c
$(CC) $(CCFLAGS) $(TARGET).c -o $(TARGET)
install: $(TARGET)
rm -f $(INST_PATH)$(TARGET)
cp $(TARGET) $(INST_PATH)
cleanall: clean
rm -f $(TARGET)
clean:
rm -f *.o *.i *.s
---------------------------------------
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|