Changeset 98868


Ignore:
Timestamp:
Oct 19, 2012, 7:57:52 AM (8 years ago)
Author:
jeremyhu@…
Message:

ld64: Avoid a possible race condition creating configure.h on ML (should fix #36026)

Location:
trunk/dports/devel/ld64
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ld64/Portfile

    r97801 r98868  
    99# XCode 4.4
    1010version                 133.3
    11 revision                3
     11revision                4
    1212set llvm_version        3.0
    1313categories              devel
     
    130130        ${worksrcpath}/src/ld/Options.cpp
    131131
    132     if {${os.major} >= 11} {
    133         reinplace "s|configure.h|ld-configure.h|g" \
    134             ${worksrcpath}/Makefile \
    135             ${worksrcpath}/src/abstraction/MachOFileAbstraction.hpp \
    136             ${worksrcpath}/src/create_configure
    137     }
    138 
    139132    if {${os.major} < 9} {
    140133        # No CommonCrypto, use openssl
     
    146139}
    147140
    148 use_configure no
     141configure {
     142    system "cd ${worksrcpath} && ${build.cmd} src/ld/configure.h"
     143}
     144
    149145build.args \
    150146    CC="${configure.cc}" \
  • trunk/dports/devel/ld64/files/Makefile-127

    r97800 r98868  
    1919endif
    2020
    21 all : ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
     21all : src/ld/configure.h ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
    2222
    23 src/ld/ld.o : src/ld/configure.h
    24 src/ld/Options.o : src/ld/configure.h
    2523src/ld/configure.h :
    2624        touch $@
  • trunk/dports/devel/ld64/files/Makefile-133

    r97800 r98868  
    1919endif
    2020
    21 all : ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
     21all : src/ld/configure.h ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
    2222
    2323src/ld/Snapshot.o : src/ld/compile_stubs.h
     
    2727        echo ";" >> $@
    2828
    29 src/ld/ld.o : src/ld/configure.h
    30 src/other/ObjectDump.o : src/ld/configure.h
    31 src/ld/Options.o : src/ld/configure.h
    3229src/ld/configure.h : src/create_configure
    3330        DERIVED_SOURCES_DIR=src/ld DERIVED_FILE_DIR=src/ld $^ > $@
  • trunk/dports/devel/ld64/files/Makefile-97

    r97800 r98868  
    1919endif
    2020
    21 all : ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
     21all : src/ld/configure.h ObjectDump dyldinfo ld machocheck rebase unwinddump libprunetrie.a
    2222
    23 src/ld/ld.o : src/ld/configure.h
    24 src/ld/Options.o : src/ld/configure.h
    2523src/ld/configure.h :
    2624        touch $@
Note: See TracChangeset for help on using the changeset viewer.