Boost logo

Boost-Build :

From: shelarcy (shelarcy_at_[hidden])
Date: 2004-07-06 11:21:36


On Tue, 6 Jul 2004 17:50:42 +0400, Vladimir Prus <ghost_at_[hidden]> wrote:
> Sorry for confusion. What I exactly mean is: we really don't work on
> mingw.
> This is really bad, we used to work there, but a change intended to make
> gcc.jam work on Solaris broken mingw, which I did not notice :-(

I see.

> So, I really wonder if we should have a mechanism to tell which gcc
> variant is being used -- cygwin, mingw, solaris, or somethng else.
>
> But first of all, I really don't understand why mingw does not work.
> I've justchecked, and the linker seems to accept "-h soname" command
> line option. Do you have an idea what's going on?

I don't know about cygwin.

My project Adviser shiro saids that linker is depended on their platform.
So "-h soname" command line option is accepet on Solaris, But other
platfrom's option is "-soname soname", "+h soname" ...etc.

http://lists.sourceforge.jp/mailman/archives/gauche-devel-jp/2004-June/000821.html

I know only this. On mingw, remove "-Wl,-h -Wl,gauche.dll" options, then
can make dll file.

* mingw successful

g++ -g -o "bin\gcc\debug\gauche.dll"
-shared "bin\gcc\debug\autoloads.o" "bin\gcc\debug\bignum.o"
"bin\gcc\debug\boolean.o" "bin\gcc\debug\char.o" "bin\gcc\debug\class.o"
"bin\gcc\debug\compare.o" "bin\gcc\debug\compile.o" "bin\gcc\debug\core.o"
"bin\gcc\debug\error.o" "bin\gcc\debug\exclib.o" "bin\gcc\debug\extlib.o"
"bin\gcc\debug\hash.o" "bin\gcc\debug\keyword.o" "bin\gcc\debug\list.o"
"bin\gcc\debug\load.o" "bin\gcc\debug\macro.o" "bin\gcc\debug\module.o"
"bin\gcc\debug\moplib.o" "bin\gcc\debug\number.o"
"bin\gcc\debug\parameter.o" "bin\gcc\debug\port.o" "bin\gcc\debug\proc.o"
"bin\gcc\debug\promise.o" "bin\gcc\debug\read.o" "bin\gcc\debug\regexp.o"
"bin\gcc\debug\repl.o" "bin\gcc\debug\signal.o" "bin\gcc\debug\stdlib.o"
"bin\gcc\debug\string.o" "bin\gcc\debug\symbol.o" "bin\gcc\debug\vector.o"
"bin\gcc\debug\vm.o" "bin\gcc\debug\weak.o" "bin\gcc\debug\write.o"
"bin\gcc\debug\syslib.o" "bin\gcc\debug\system.o" -Wl,-Bdynamic -lgc
-Wl,-Bstatic -Wl,-Bdynamic -lgc -Wl,-Bstatic -Wl,-Bdynamic

I wrote this command myself and I use dll myproject.
(But I made dll only. lib.a is not available.)

----
lib gauche : ../src/autoloads.c ../src/bignum.c ../src/boolean.c 
../src/char.c ../src/class.c ../src/compare.c ../src/compile.c
../src/core.c ../src/error.c ../src/exclib.c ../src/extlib.c 
../src/hash.c ../src/keyword.c ../src/list.c
../src/load.c ../src/macro.c ../src/module.c ../src/moplib.c 
../src/number.c ../src/parameter.c ../src/port.c
../src/proc.c ../src/promise.c ../src/read.c ../src/regexp.c 
../src/repl.c ../src/signal.c ../src/stdlib.c ../src/string.c
../src/symbol.c ../src/vector.c ../src/vm.c ../src/weak.c 
../src/write.c ../src/syslib.c ../src/system.c gc
: <include>../src <include>../gc/include <link>shared #<link>static
;
exe gosh : ../src/main.c gauche
: <include>../src <include>../gc/include
;
----
-- 
shelarcy <shelarcy_at_[hidden]>
http://page.freett.com/shelarcy/
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk