* [devel] Создание LTOBJS ( lo-файлы )
@ 2007-09-17 5:59 Vitaly Lipatov
2007-09-17 6:01 ` Andrey Rahmatullin
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Lipatov @ 2007-09-17 5:59 UTC (permalink / raw)
To: devel
В одном Makefile (опять sane) такая конструкция:
LIBLIB_OBJS = @LIBOBJS@ @ALLOCA@ getopt.o getopt1.o md5.o
LIBLIB_LTOBJS = $(addsuffix .lo,$(basename $(LIBLIB_OBJS)))
TARGETS = liblib.a $(LIBLIB_LTOBJS)
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LIBTOOL = ../libtool
MCOMP = --mode=compile
.c.o:
$(COMPILE) $<
.c.lo:
@$(LIBTOOL) $(MCOMP) $(COMPILE) $<
all: $(TARGETS)
liblib.a: $(LIBLIB_OBJS)
ar r $@ $(LIBLIB_OBJS)
$(RANLIB) $@
Поскольку при создании lo-файлов происходит компиляция, и
создаются объектники, выходит создавать отдельно объектники нет
смысла, или я не понимаю какой-то хитрости? Зачем они отдельно
создают _OBJS и _LTOBJS?
--
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] Создание LTOBJS ( lo-файлы )
2007-09-17 5:59 [devel] Создание LTOBJS ( lo-файлы ) Vitaly Lipatov
@ 2007-09-17 6:01 ` Andrey Rahmatullin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Rahmatullin @ 2007-09-17 6:01 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
On Mon, Sep 17, 2007 at 09:59:23AM +0400, Vitaly Lipatov wrote:
> смысла, или я не понимаю какой-то хитрости? Зачем они отдельно
> создают _OBJS и _LTOBJS?
-fPIC ?
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):
Объем ответственности осознаю, но ради порядка в любимой рассылке
готов даже сам перестать в ней флеймить ;)
-- wrar in community@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-17 6:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 5:59 [devel] Создание LTOBJS ( lo-файлы ) Vitaly Lipatov
2007-09-17 6:01 ` Andrey Rahmatullin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git