Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
18dc1ff0
Commit
18dc1ff0
authored
Oct 20, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add check_ld() helper function to simplify some expressions
parent
9c37d765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
configure
configure
+11
-3
No files found.
configure
View file @
18dc1ff0
...
...
@@ -850,6 +850,14 @@ test_ld(){
test_cmd
$ld
$LDFLAGS
$flags
$(
ld_o
$TMPE
)
$TMPO
$libs
$extralibs
}
check_ld
(){
log check_ld
"
$@
"
name
=
$1
shift
disable
$name
test_ld
$@
&&
enable
$name
}
print_include
(){
hdr
=
$1
test
"
${
hdr
%.h
}
"
=
"
${
hdr
}
"
&&
...
...
@@ -4267,8 +4275,8 @@ elif enabled arm; then
:
elif
!
test_cpp_condition stddef.h
"defined __ARM_PCS || defined __SOFTFP__"
&&
[
$target_os
!=
darwin
]
;
then
case
"
${
cross_prefix
:-
$cc
}
"
in
*
hardfloat
*
)
enable
vfp_args
;
fpabi
=
vfp
;;
*
)
test_ld
<<
EOF
&& enable vfp_args
&& fpabi=vfp || fpabi=soft ;;
*
hardfloat
*
)
enable
vfp_args
;
fpabi
=
vfp
;;
*
)
check_ld vfp_args
<<
EOF
&& fpabi=vfp || fpabi=soft ;;
__asm__ (".eabi_attribute 28, 1");
int main(void) { return 0; }
EOF
...
...
@@ -4867,7 +4875,7 @@ enabled xmm_clobber_test &&
-Wl
,--wrap,sws_scale
||
disable xmm_clobber_test
test_ld
<<
EOF
&& enable proper_dce
check_ld proper_dce
<<
EOF
extern const int array[512];
static inline int func(void) { return array[0]; }
int main(void) { return 0; }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment