Richard W.M. Jones wrote:
> On Wed, Jan 28, 2009 at 03:42:23PM -0800, Dan Nicholson wrote:
>> On Wed, Jan 28, 2009 at 3:38 PM, Richard W.M. Jones <[email protected]> 
>> wrote:
>>> On Wed, Jan 28, 2009 at 03:33:39PM -0800, Dan Nicholson wrote:
>>>> If you set 
>>>> PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig,
>>>> does that also work? I believe that was the intention of this
>>>> variable.
>>> Yes, I think that should work, and I'm not sure why we didn't see it
>>> before.  Anyhow, I'll try it out later this week.
>> Pretty easy to test. Assume you have foo.pc in
>> /usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig and
>> /usr/lib/pkgconfig.
>>
>> $ PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig
>> PKG_CONFIG_DEBUG_SPEW=1 pkg-config --print-errors --exists foo
>>
>> That should give you any information you need to see. You can also
>> make PKG_CONFIG_LIBDIR into a PATH like variable:
>>
>> PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig:/usr/i686-pc-mingw/sys-root/mingw/share/pkgconfig
> 
> Yes, I confirmed this does work.

you mean in this way?

-- 
  Levente                               "Si vis pacem para bellum!"
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.12
diff -u -r1.12 mingw32-filesystem.spec
--- mingw32-filesystem.spec     26 Jan 2009 17:21:27 -0000      1.12
+++ mingw32-filesystem.spec     28 Jan 2009 23:53:19 -0000
@@ -1,7 +1,7 @@
 %define debug_package %{nil}
 
 Name:           mingw32-filesystem
-Version:        44
+Version:        45
 Release:        1%{?dist}
 Summary:        MinGW base filesystem and environment
 
@@ -153,6 +153,9 @@
 
 
 %changelog
+* Wed Dec 29 2008 Levente Farkas <[email protected]> - 45-1
+- Remove parameters from mingw32-make
+
 * Mon Jan 26 2009 Richard W.M. Jones <[email protected]> - 44-1
 - Install rpmlint overrides file to suppress some rpmlint warnings.
 
Index: mingw32-macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-macros.mingw32,v
retrieving revision 1.7
diff -u -r1.7 mingw32-macros.mingw32
--- mingw32-macros.mingw32      24 Jan 2009 18:11:43 -0000      1.7
+++ mingw32-macros.mingw32      28 Jan 2009 23:53:19 -0000
@@ -55,6 +55,7 @@
 
 %_mingw32_env HOST_CC=gcc; export HOST_CC; \
   PKG_CONFIG_PATH="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_PATH; \
+  PKG_CONFIG_LIBDIR="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_LIBDIR; \
   _PREFIX="%{_bindir}/%{_mingw32_target}-"; \
   for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
     x=`echo $i|sed "s,${_PREFIX},,"|tr "a-z+-" "A-ZX_"`; \
@@ -97,22 +98,6 @@
        --mandir=%{_mingw32_mandir} \\\
        --infodir=%{_mingw32_infodir}
 
-%_mingw32_make %{_mingw32_env} ; \
-  make \\\
-       prefix=%{_mingw32_prefix} \\\
-       exec_prefix=%{_mingw32_exec_prefix} \\\
-       bindir=%{_mingw32_bindir} \\\
-       sbindir=%{_mingw32_sbindir} \\\
-       sysconfdir=%{_mingw32_sysconfdir} \\\
-       datadir=%{_mingw32_datadir} \\\
-       includedir=%{_mingw32_includedir} \\\
-       libdir=%{_mingw32_libdir} \\\
-       libexecdir=%{_mingw32_libexecdir} \\\
-       localstatedir=%{_mingw32_localstatedir} \\\
-       sharedstatedir=%{_mingw32_sharedstatedir} \\\
-       mandir=%{_mingw32_mandir} \\\
-       infodir=%{_mingw32_infodir}
-
 %_mingw32_makeinstall %{_mingw32_env} ; \
   make \\\
        prefix=%{?buildroot:%{buildroot}}%{_mingw32_prefix} \\\
@@ -130,3 +115,4 @@
        infodir=%{?buildroot:%{buildroot}}%{_mingw32_infodir} \\\
   install
 
+%_mingw32_make %{_mingw32_env} ; make
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw

Reply via email to