Commit fca47616 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Attempt to fix my previous commit

parent 5a843a7f
...@@ -893,7 +893,9 @@ RDC_PROG_CC_FLAGS_IFELSE([-pipe]) ...@@ -893,7 +893,9 @@ RDC_PROG_CC_FLAGS_IFELSE([-pipe])
dnl This helps detect broken plugins with undefined symbols dnl This helps detect broken plugins with undefined symbols
dnl Better fail loudly at build-time than silenty at run-time. dnl Better fail loudly at build-time than silenty at run-time.
RDC_PROG_LINK_FLAGS_IFELSE([-Wl,-z,defs]) RDC_PROG_LINK_FLAGS_IFELSE([-Wl,-z,defs], [
VLC_ADD_LDFLAGS([plugin],[-Wl,-z,defs])
])
dnl Check for various optimization flags dnl Check for various optimization flags
AC_CACHE_CHECK([if \$CC accepts -Os], AC_CACHE_CHECK([if \$CC accepts -Os],
......
...@@ -13,7 +13,7 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE], ...@@ -13,7 +13,7 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE],
CFLAGS_save="${CFLAGS}" CFLAGS_save="${CFLAGS}"
as_ac_var=`echo "ac_cv_prog_cc_flags_$1" | $as_tr_sh` as_ac_var=`echo "ac_cv_prog_cc_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $CC accepts $1], [$as_ac_var], [ AC_CACHE_CHECK([if $CC accepts $1], [$as_ac_var], [
CFLAGS="${CFLAGS_save} $1" CFLAGS="${CFLAGS} $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [
eval "$as_ac_var=yes" eval "$as_ac_var=yes"
],[ ],[
...@@ -44,7 +44,7 @@ AC_DEFUN([RDC_PROG_LINK_FLAGS_IFELSE], ...@@ -44,7 +44,7 @@ AC_DEFUN([RDC_PROG_LINK_FLAGS_IFELSE],
LDFLAGS_save="${LDFLAGS}" LDFLAGS_save="${LDFLAGS}"
as_ac_var=`echo "ac_cv_prog_link_flags_$1" | $as_tr_sh` as_ac_var=`echo "ac_cv_prog_link_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $LINK accepts $1], [$as_ac_var], [ AC_CACHE_CHECK([if $LINK accepts $1], [$as_ac_var], [
LDFLAGS="${LDFLAGS_save} $1" LDFLAGS="${LDFLAGS} $1"
AC_LINK_IFELSE([AC_LANG_PROGRAM()], [ AC_LINK_IFELSE([AC_LANG_PROGRAM()], [
eval "$as_ac_var=yes" eval "$as_ac_var=yes"
],[ ],[
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment