2009-08-15 11:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    ! Minor fix for darwin and automatic entry function detection using 'nm'.
      nm on Darwin doesn't seem to support '--defined-only -C' option.
      Przemek, please check this, maybe this hurts functionality.
This commit is contained in:
Viktor Szakats
2009-08-15 09:49:03 +00:00
parent c1f484cca0
commit 2dacc0e733
2 changed files with 7 additions and 1 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-08-15 11:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
! Minor fix for darwin and automatic entry function detection using 'nm'.
nm on Darwin doesn't seem to support '--defined-only -C' option.
Przemek, please check this, maybe this hurts functionality.
2009-08-15 11:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* make_gnu_xmingw.sh
* make_gnu_xmingwce.sh

View File

@@ -5644,7 +5644,7 @@ STATIC FUNCTION getFirstFunc( hbmk, cFile )
NEXT
ELSEIF ! Empty( cExecNM := FindInPath( hbmk[ _HBMK_cCCPREFIX ] + "nm" ) )
cFuncList := ""
hb_processRun( cExecNM + " " + cFile + " -g -n --defined-only -C",, @cFuncList )
hb_processRun( cExecNM + " " + cFile + " -g -n" + iif( hbmk[ _HBMK_cCOMP ] == "darwin", "", " --defined-only -C" ),, @cFuncList )
IF ( n := At( " T HB_FUN_", cFuncList ) ) != 0
n += 10
DO WHILE ( c := SubStr( cFuncList, n++, 1 ) ) == "_" .OR. ;