[patch] build with versioned compiler

Matthias Klose doko at ubuntu.com
Fri Jan 18 04:52:33 PST 2008


Andrew John Hughes schrieb:
> On 18/01/2008, Matthias Klose <doko at ubuntu.com> wrote:
>> Two updates:
>>
>>  - allow openjdk/corba build with a versioned compiler (e.g. gcc-4.3)
>>
>>  - fix build failure when gcc version != gcj version, and the libgcj.so
>>    installed in gcc_lib_dir cannot be found (debian and ubuntu do install
>>    an extra symlink in /usr/lib/jvm/java-gcj/lib for that reason).
>>
>> Matthias
>>
>> patches/icedtea-gcc-suffix.patch
>>
>>         * patches/icedtea-ecj.patch: Add library dir to find libgcj.
>>
>> diff -r 23b096c586ef patches/icedtea-ecj.patch
>> --- a/patches/icedtea-ecj.patch Mon Jan 14 00:41:35 2008 -0500
>> +++ b/patches/icedtea-ecj.patch Fri Jan 18 13:01:35 2008 +0100
>> @@ -271,7 +271,7 @@
>>   endif
>>   JVMLIB          = -L$(BOOTDIR)/jre/lib/$(LIBARCH)/$(VM_NAME) -ljvm
>>  -JAVALIB         = -L$(BOOTDIR)/jre/lib/$(LIBARCH) -ljava $(JVMLIB)
>> -+JAVALIB         = -L$(BOOTDIR)/jre/lib/$(LIBARCH) -lgcj $(JVMLIB)
>> ++JAVALIB         = -L$(BOOTDIR)/jre/lib/$(LIBARCH) -L/usr/lib/jvm/java-gcj/lib -lgcj $(JVMLIB)
>>
> 
> Is it really necessary to hardcode this path? I doubt it exists
> everywhere, especially if gcj is not in that prefix.

The better alternative would be to use gcj instead of gcc for linking. I'll look
at it.

> The format of this patch seems a little odd with + on every line...

no, it just appends to a patch.



More information about the distro-pkg-dev mailing list