I'm using paldo gnu/linux. After installing the package
i686-pc-linux-gnu I can't compile lazarus anymore.
The makefile generates a link.res file with this:
SEARCH_DIR(/lib64/)
SEARCH_DIR(/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.3/)
SEARCH_DIR(/usr/local/lib/)
SEARCH_DIR(/lib/i686-pc-linux-gnu/)
SEARCH_DIR(/usr/lib/i686-pc-linux-gnu/)
...
/usr/lib/i686-pc-linux-gnu/crti.o
...
)
INPUT(
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.3/crtend.o
/usr/lib/i686-pc-linux-gnu/crtn.o
)crti.o and crtn.o are both 32bit-builds. The 64bit-builds are located in /usr/lib.
how can I prevent makefile to add
i686-pc-linux-gnu to the link.res-file?
Must be here:
ifneq ($(findstring darwin,$(OSTYPE)),)
inUnix=1 #darwin
SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
else
ifeq ($(findstring ;,$(PATH)),)
inUnix=1
SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
else
SEARCHPATH:=$(subst ;, ,$(PATH))
endif
endif
SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))and here:
endif
endif
ifndef OTHERLIBDIR
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
endif
endif
ifdef inUnix... in the makefile. Must be in SEARCHPATH and OTHERLIBDIR ...