[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] fribidi
From: |
Enoch |
Subject: |
Re: [Mingw-cross-env-list] fribidi |
Date: |
Sat, 18 Jun 2016 13:26:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Tony Theodore <address@hidden> writes:
>> On 18 Jun 2016, at 05:57, Enoch <address@hidden> wrote:
>>
>> 1) glib.h is actually under glib-2.0/ but trying to manually include it
>> raises other errors.
>
> Did you try using `pkg-config` to set the correct CFLAGS?
>
> Cheers,
>
> Tony
Hi Tony,
Your advice helped.
The relevant section from my Makefile is now:
MMM=i686-w64-mingw32.static
MXE=$(HOME)/mxe/usr
MGW=$(MXE)/$(MMM)
%.dll: PATH=$(MXE)/bin:$(MGW)/bin
%.dll: CPATH=$(MXE)/include:$(MGW)/include
%.dll: CC=$(MMM)-gcc
%.dll: PKG_CONFIG=$(MMM)-pkg-config
rowise.dll: rowise.c
$(CC) $(CFLAGS) $< -shared -o$@ -static `$(PKG_CONFIG) --cflags fribidi
--libs fribidi`
An unfortunate outcome though is size:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New size: 1707008 Jun 18 12:55 rowise.dll
Old size: 74752 Apr 15 15:48 rowise.dll
Commenting out --with-glib in the fribidi.mk and rebuilding did not
shrink my dll size. A closer examination is needed.
Thanks, Enoch.