ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Pozhidaev <msp@altlinux.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Need help: sam2p не собирается с указанной архитектурой
Date: Tue, 19 Feb 2008 04:01:21 +0600
Message-ID: <m3mypxvs9a.fsf@blard.localdomain> (raw)
In-Reply-To: <20080218201854.GA4730@atlas.home> (Sergey Vlasov's message of "Mon\, 18 Feb 2008 23\:18\:54 +0300")

Sergey Vlasov <vsu@altlinux.ru> writes:

>> > LANG=C make CXXFLAGS='-march=i586'
>
> Обычно так делать нельзя - указание переменной в вызове make полностью
> заменяет значение, установленное в Makefile, тем, которое указано в
> командной строке; вероятно, в данном случае в результате были потеряны
> нужные для сборки опции.
Про неправильное использование -- усёк и буду помнить. Казалось, что CXXFLAGS используется именно 
для определения уровня оптимизации/отладки, а специфические параметры передадут отдельно, например, через AM_CXXFLAGS, если automake используют.
Причина, действительно, в использовании gcc, как написал Дмитрий. Переправил это в Makehelp.in.
>
> Стандартный способ - использование макроса %configure, который
> передаёт CFLAGS и CXXFLAGS скрипту configure; 
Ага, ясно!
>но у этого пакета
> configure какой-то странный (CXXFLAGS грубо чистится).  Возможный
> способ обхода - передача CC="gcc $RPM_OPT_FLAGS" CXX="g++
> $RPM_OPT_FLAGS" в вызове configure.
Здесь, это, видимо, не понадобиться. Пакет вообще не слишком правильный, но рабочее состояние достигнуто.
>
>
> Там какой-то странный апстрим - похоже, такую линковку сделали
> специально; файл c_lgcc.cpp содержит ужас следующего вида:
>
> /* Tue Sep  3 18:24:26 CEST 2002
>  * empirical g++-3.2 helper routines for gcc version 3.2.1 20020830 (Debian prerelease)
>  */
> void* operator new      XMALLOC_CODE()
> void* operator new[]    XMALLOC_CODE()
> void  operator delete   XFREE_CODE()
> void  operator delete[] XFREE_CODE()
> void* __cxa_pure_virtual=0;
>
> Впрочем, c_lgcc3.cpp ещё лучше:
>
> /* at Wed Dec 11 16:31:42 CET 2002
>  * This helper is here for gcc-2.95: c_lgcc3.cpp should be compiled by
>  * gcc-2.95, remaining files are compiled by g++-3.2
>  */
> void* __cxa_pure_virtual=0;
> extern "C" void  _ZdlPv (void*);
> extern "C" void* _Znwj (unsigned);
> extern "C" void  _ZdaPv (void*);
> extern "C" void* _Znaj (unsigned);
> void  _ZdlPv XFREE_CODE()
> void* _Znwj  XMALLOC_CODE()
> void  _ZdaPv XFREE_CODE()
> void* _Znaj  XMALLOC_CODE()
>
> И вот такие перлы в README:
>
> Q31. Why not use libjpeg/libtiff/libpng/zlib or any other library with
>      sam2p?
>
> A31. -- library and .h incompatibilities (the binary would be less portable
>         across Linux systems)
>      -- to avoid forced dependencies
>      -- checkergcc wouldn't work
>
>
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus

-- 
С уважением и наилучшими пожеланиями, Михаил Пожидаев. E-mail: msp@altlinux.ru.
Томский государственный университет. Факультет информатики. http://www.csd.tsu.ru
AltLinux Team. http://www.altlinux.ru


  parent reply	other threads:[~2008-02-18 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 19:45 Michael Pozhidaev
2008-02-18 20:00 ` Dmitry V. Levin
2008-02-18 20:18   ` Sergey Vlasov
2008-02-18 21:54     ` Dmitry V. Levin
2008-02-19 10:33       ` Sergey Vlasov
2008-02-18 22:01     ` Michael Pozhidaev [this message]
2008-02-18 21:43   ` Michael Pozhidaev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3mypxvs9a.fsf@blard.localdomain \
    --to=msp@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git