mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
2003-04-11 Roland McGrath <roland@redhat.com>
* Makefile ($(objpfx)multidir.mk): New target, generated makefile that sets variable `multidir'; include that. (generated): Add it. ($(objpfx)$(multidir)/crti.o): New target. [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
ifeq ($(subdir),linuxthreads)
|
||||
# gcc has /usr/lib{,64}/crti.o hardcoded in the specs file, because otherwise
|
||||
# it would normally find {64,32}bit crt[in].o.
|
||||
LDFLAGS-pthread.so += -specs=$(objpfx)specs
|
||||
before-compile += $(objpfx)specs
|
||||
generated += specs
|
||||
$(objpfx)specs:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs \
|
||||
| sed 's~\(/usr/lib\(\|64\)/\|^\|\([^/a-z]\)\)\(crt[in]\.o\)~\3'$(objpfx)'\4~g' > $@.new
|
||||
mv -f $@.new $@
|
||||
endif
|
@ -1,12 +1,3 @@
|
||||
ifeq ($(subdir),linuxthreads)
|
||||
CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-asynchronous-unwind-tables
|
||||
# gcc -m64 has /usr/lib64/crti.o hardcoded in the specs file, because otherwise
|
||||
# it would normally find 32bit crti.o.
|
||||
LDFLAGS-pthread.so += -specs=$(objpfx)specs
|
||||
before-compile += $(objpfx)specs
|
||||
generated += specs
|
||||
$(objpfx)specs:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -dumpspecs \
|
||||
| sed 's,\(/usr/lib\(\|64\)/\|^\|\([^/a-z]\)\)\(crt[in]\.o\),\3./\4,g' > $@.new
|
||||
mv -f $@.new $@
|
||||
endif
|
||||
|
Reference in New Issue
Block a user