Howto re-compile ony parts?
Igor Nekrestyanov
Igor.Nekrestyanov at Sun.COM
Sun May 11 05:49:27 UTC 2008
>> Not sure why you want to override ALT_JDK_IMPORT_PATH. I do not think this
>> is needed
>> but i am not sure if it can do any harm.
>>
>> I think you may need to set ALT_OUTPUTDIR to
>> $YOUR_OPENJDK_WS/build/linux-i586.
>> Otherwise partial make runs from jdk subdirectory will actually use
>> $YOUR_OPENJDK_WS/jdk/build/linux-i586 and obviously full build is not there.
>>
> Thanks for the hint.
> It seems everything compiles fine now, however when it comes to
> linking ld complains it cannot find "-lawt":
>
> build/linux-i586/lib/i386 -Wl,-soname=libmawt.so -lXtst -lXi -ljava
> -L/home/ce/OpenJDK7/build/linux-i586/lib/i386/server -ljvm -lc
> /usr/bin/ld: cannot find -lawt
> collect2: ld gab 1 als Ende-Status zurück
> make: *** [/home/ce/OpenJDK7/build/linux-i586/lib/i386/xawt/libmawt.so] Fehler 1
>
> However getting this to work is really low priority ;)
>
Command you pasted is truncated and it is hard to tell what is going on
here.
Send me full log for incremental build and i'll check if i have any
further ideas.
BTW, is libawt.so present in your build tree?
You may also try to run make from make/java/awt but i am not sure if it
will help.
>> I have not looked into unresolved function issue in detail. Just a wild
>> guess - have you added new function to
>> mapfile in the xawt make directory?
>>
> Thank you many many times for this, I don't know how long further I
> would have searched without this information.
> What is this file good for and how is it used during the build?
>
I believe mapfiles are used to defines set of methods to be exported
from shared library.
Perhaps, you may grep build log file for mapfile name to see how this is
done exactly
(do not have linux build here and have not checked log myself).
My understanding of why we use this is following.
Symbol tables for all methods from the library are large and explicit
control on set of exported methods
is workaround to reduce library file size (and size has impact on memory
footprint, download footprint, startup time, etc.).
-igor
> Thanks a lot, lg Clemens
>
More information about the build-dev
mailing list