Some problem with my Makefile ??

OLSRD_PLUGIN =    true
PLUGIN_NAME =    olsrd_test
PLUGIN_VER =    0.1

TOPDIR = ../..
include $(TOPDIR)/Makefile.inc

default_target: $(PLUGIN_FULLNAME)

$(PLUGIN_FULLNAME): $(OBJS) version-script.txt
        mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
-lc

install:    $(PLUGIN_FULLNAME)
              $(STRIP) $(PLUGIN_FULLNAME)
              $(INSTALL_LIB)

clean:
        rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)


When I try compile occurr some problems:

*....
....

mipsel-linux-uclibc/bin/ld: src/test_plugin.o: Relocations in generic ELF
(EM: 3)
src/test_plugin.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: ** [olsrd_test.so.0.1] Error 1*

The plugin is dinamic library for olsrd-0.6. When I use the line:

$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc

instead of:

mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc

It compile, but when I try execute olsrd -f /etc/olsrd.conf some problems
returned how "ELF not executable MIPSEL".
I think that this problems is because of the used compile.


--
Airton Ishimori
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to