develooper Front page | perl.perl5.porters | Postings from May 2010

[perl #75190] Setting of incpath and libpth with mingw64

Thread Previous
From:
Sisyphus
Date:
May 20, 2010 02:46
Subject:
[perl #75190] Setting of incpath and libpth with mingw64
Message ID:
rt-3.6.HEAD-4976-1274323450-734.75190-75-0@perl.org
# New Ticket Created by  "Sisyphus" 
# Please include the string:  [perl #75190]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75190 >


This is a bug report for perl from Rob@desktop2,
generated with the help of perlbug 1.39 running under perl 5.12.1.


-----------------------------------------------------------------
[Please describe your issue here]

When building perl with the mingw64 x64 cross-compiler 'incpath', 'libpth', 
'ldflags', 'lddlflags' and 'ldflags_nolargefiles' values in Config.pm and 
Config_heavy.pl are not being set correctly because, with that compiler, the 
include and lib directories are not immediately below $(CCHOME). Here's a 
patch to win32/makefile.mk that addresses this issue:

--- makefile.mk_orig Wed May 19 22:59:22 2010
+++ makefile.mk Thu May 20 00:14:30 2010
@@ -221,8 +221,6 @@
 .ELSE
 CCHOME  *= $(MSVCDIR)
 .ENDIF
-CCINCDIR *= $(CCHOME)\include
-CCLIBDIR *= $(CCHOME)\lib

 #
 # If building with gcc-4.x.x (or x86_64-w64-mingw32-gcc-4.x.x), then
@@ -246,6 +244,18 @@
 # instead of the usual 'gcc'.
 #
 #GCCCROSS *= define
+
+#
+# Following sets $Config{incpath} and $Config{libpth}
+#
+
+.IF "$(GCCCROSS)" == "define"
+CCINCDIR *= $(CCHOME)\mingw\include
+CCLIBDIR *= $(CCHOME)\mingw\lib
+.ELSE
+CCINCDIR *= $(CCHOME)\include
+CCLIBDIR *= $(CCHOME)\lib
+.ENDIF

 #
 # Additional compiler flags can be specified here.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=medium
---
Site configuration information for perl 5.12.1:

Configured by Rob at Wed May 19 23:06:54 2010.

Summary of my perl5 (revision 5 version 12 subversion 1) configuration:

  Platform:
    osname=MSWin32, osvers=6.0, archname=MSWin32-x64-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='x86_64-w64-mingw32-gcc', ccflags 
=' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE  -DPERL_IMPLICIT_CONTEXT 
 -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='4.4.4', gccosandvers=''
    intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long 
long', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='x86_64-w64-mingw32-g++', ldflags 
='-s -L"c:\_64\perl5121_M\lib\CORE" -L"C:\_64\mingw64\mingw\lib"'
    libpth=C:\_64\mingw64\mingw\lib
    libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 
 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion 
 -lodbc32 -lodbccp32 -lcomctl32
    perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 
 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion 
 -lodbc32 -lodbccp32 -lcomctl32
    libc=, so=dll, useshrplib=true, libperl=libperl512.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', 
lddlflags='-mdll -s -L"c:\_64\perl5121_M\lib\CORE" -L"C:\_64\mingw64\mingw\lib"'

Locally applied patches:


---
@INC for perl 5.12.1:
    C:\_64\perl512_M\site\lib
    C:/_64/perl5121_M/site/lib
    C:/_64/perl5121_M/lib
    .

---
Environment for perl 5.12.1:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\_64\perl5121_M\bin;C:\Program Files\Windows 
NT\Accessories;C:\_32\dmake;C:\_64\mingw64\bin;c:\ruby\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\_32\lzma;C:\Program 
Files (x86)\GnuWin32\bin;C:\GNUWin32\bin;C:\batch;C:\_64\third_party_app
    PERL5LIB=C:\_64\perl512_M\site\lib
    PERL_BADLANG (unset)
    SHELL (unset)


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About