-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
2,350 additions
and
3,143 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
# Wrapper for Microsoft lib.exe | ||
|
||
me=ar-lib | ||
scriptversion=2012-03-01.08; # UTC | ||
scriptversion=2012-01-30.22; # UTC | ||
|
||
# Copyright (C) 2010-2013 Free Software Foundation, Inc. | ||
# Copyright (C) 2010, 2012 Free Software Foundation, Inc. | ||
# Written by Peter Rosin <[email protected]>. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
|
@@ -153,9 +153,7 @@ action=${action#-} | |
delete= | ||
extract= | ||
list= | ||
quick= | ||
replace= | ||
index= | ||
create= | ||
|
||
while test -n "$action" | ||
|
@@ -164,10 +162,7 @@ do | |
d*) delete=yes ;; | ||
x*) extract=yes ;; | ||
t*) list=yes ;; | ||
q*) quick=yes ;; | ||
r*) replace=yes ;; | ||
s*) index=yes ;; | ||
S*) ;; # the index is always updated implicitly | ||
c*) create=yes ;; | ||
u*) ;; # TODO: don't ignore the update modifier | ||
v*) ;; # TODO: don't ignore the verbose modifier | ||
|
@@ -178,8 +173,8 @@ do | |
action=${action#?} | ||
done | ||
|
||
case $delete$extract$list$quick$replace,$index in | ||
yes,* | ,yes) | ||
case $delete$extract$list$replace in | ||
yes) | ||
;; | ||
yesyes*) | ||
func_error "more than one action specified" | ||
|
@@ -230,7 +225,7 @@ elif test -n "$extract"; then | |
done | ||
fi | ||
|
||
elif test -n "$quick$replace"; then | ||
elif test -n "$replace"; then | ||
if test ! -f "$orig_archive"; then | ||
if test -z "$create"; then | ||
echo "$me: creating $orig_archive" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#! /bin/sh | ||
# Wrapper for compilers which do not understand '-c -o'. | ||
|
||
scriptversion=2012-10-14.11; # UTC | ||
scriptversion=2012-01-04.17; # UTC | ||
|
||
# Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free | ||
# Software Foundation, Inc. | ||
# Written by Tom Tromey <[email protected]>. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
|
@@ -78,53 +79,6 @@ func_file_conv () | |
esac | ||
} | ||
|
||
# func_cl_dashL linkdir | ||
# Make cl look for libraries in LINKDIR | ||
func_cl_dashL () | ||
{ | ||
func_file_conv "$1" | ||
if test -z "$lib_path"; then | ||
lib_path=$file | ||
else | ||
lib_path="$lib_path;$file" | ||
fi | ||
linker_opts="$linker_opts -LIBPATH:$file" | ||
} | ||
|
||
# func_cl_dashl library | ||
# Do a library search-path lookup for cl | ||
func_cl_dashl () | ||
{ | ||
lib=$1 | ||
found=no | ||
save_IFS=$IFS | ||
IFS=';' | ||
for dir in $lib_path $LIB | ||
do | ||
IFS=$save_IFS | ||
if $shared && test -f "$dir/$lib.dll.lib"; then | ||
found=yes | ||
lib=$dir/$lib.dll.lib | ||
break | ||
fi | ||
if test -f "$dir/$lib.lib"; then | ||
found=yes | ||
lib=$dir/$lib.lib | ||
break | ||
fi | ||
if test -f "$dir/lib$lib.a"; then | ||
found=yes | ||
lib=$dir/lib$lib.a | ||
break | ||
fi | ||
done | ||
IFS=$save_IFS | ||
|
||
if test "$found" != yes; then | ||
lib=$lib.lib | ||
fi | ||
} | ||
|
||
# func_cl_wrapper cl arg... | ||
# Adjust compile command to suit cl | ||
func_cl_wrapper () | ||
|
@@ -155,34 +109,43 @@ func_cl_wrapper () | |
;; | ||
esac | ||
;; | ||
-I) | ||
eat=1 | ||
func_file_conv "$2" mingw | ||
set x "$@" -I"$file" | ||
shift | ||
;; | ||
-I*) | ||
func_file_conv "${1#-I}" mingw | ||
set x "$@" -I"$file" | ||
shift | ||
;; | ||
-l) | ||
eat=1 | ||
func_cl_dashl "$2" | ||
set x "$@" "$lib" | ||
shift | ||
;; | ||
-l*) | ||
func_cl_dashl "${1#-l}" | ||
set x "$@" "$lib" | ||
lib=${1#-l} | ||
found=no | ||
save_IFS=$IFS | ||
IFS=';' | ||
for dir in $lib_path $LIB | ||
do | ||
IFS=$save_IFS | ||
if $shared && test -f "$dir/$lib.dll.lib"; then | ||
found=yes | ||
set x "$@" "$dir/$lib.dll.lib" | ||
break | ||
fi | ||
if test -f "$dir/$lib.lib"; then | ||
found=yes | ||
set x "$@" "$dir/$lib.lib" | ||
break | ||
fi | ||
done | ||
IFS=$save_IFS | ||
|
||
test "$found" != yes && set x "$@" "$lib.lib" | ||
shift | ||
;; | ||
-L) | ||
eat=1 | ||
func_cl_dashL "$2" | ||
;; | ||
-L*) | ||
func_cl_dashL "${1#-L}" | ||
func_file_conv "${1#-L}" | ||
if test -z "$lib_path"; then | ||
lib_path=$file | ||
else | ||
lib_path="$lib_path;$file" | ||
fi | ||
linker_opts="$linker_opts -LIBPATH:$file" | ||
;; | ||
-static) | ||
shared=false | ||
|
Oops, something went wrong.