Ticket #9969: 0001-Use-the-ln_s-variable-so-config.h-and-config.mak-are.patch

File 0001-Use-the-ln_s-variable-so-config.h-and-config.mak-are.patch, 1.6 KB (added by Jonathan <jonathan@…>, 10 years ago)
  • mythtv/configure

    From 786a039f7de972ac2bb869fddd3e976b548690d0 Mon Sep 17 00:00:00 2001
    From: Jonathan Martens <jonathan@snetram.nl>
    Date: Sat, 6 Aug 2011 11:24:10 +0200
    Subject: [PATCH 1/2] Use the ${ln_s} variable so config.h and config.mak are always updated when using MinGW.
    
    Since MinGW (on windows at least) does not support symlinking natively it makes a copy instead of a link, new compiles are not updated by 'ln -s' as the file already exists, by forcing it it will update the file.
    As ${ln_s} already defines to use 'ln -sf' I made the change to use this variable.
    ---
     mythtv/configure |   10 +++++-----
     1 files changed, 5 insertions(+), 5 deletions(-)
    
    diff --git a/mythtv/configure b/mythtv/configure
    index 687c657..8e46ff0 100755
    a b EOF 
    48604860cp_if_changed $TMPH $MYTH_CONFIG_H
    48614861
    48624862if ! test -L config.h ; then
    4863   ln -s $MYTH_CONFIG_H config.h
     4863  ${ln_s} $MYTH_CONFIG_H config.h
    48644864fi
    48654865
    48664866if [ ! -e config.h ] ; then
    4867   ln -s $MYTH_CONFIG_H config.h
     4867  ${ln_s} $MYTH_CONFIG_H config.h
    48684868fi
    48694869
    48704870cp_if_changed $TMPMAK $MYTH_CONFIG_MAK
    48714871
    48724872if ! test -L config.mak ; then
    4873   ln -s $MYTH_CONFIG_MAK config.mak
     4873  ${ln_s} $MYTH_CONFIG_MAK config.mak
    48744874fi
    48754875
    48764876if [ ! -e config.mak ] ; then
    4877   ln -s $MYTH_CONFIG_MAK config.mak
     4877  ${ln_s} $MYTH_CONFIG_MAK config.mak
    48784878fi
    48794879
    48804880
    EOF 
    49044904
    49054905# link config.h into external/FFmpeg
    49064906rm -f external/FFmpeg/config.h
    4907 (cd external/FFmpeg/ && ln -s ../../$MYTH_CONFIG_H config.h)
     4907(cd external/FFmpeg/ && ${ln_s} ../../$MYTH_CONFIG_H config.h)
    49084908touch external/FFmpeg/.config
    49094909
    49104910enabled yasm && cp_if_changed $TMPASM external/FFmpeg/config.asm