Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
18ce7125
Commit
18ce7125
authored
Sep 07, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: x264, fix the new configure of x264.
ADD a $STRIP option to bootstrap because x264 needs it
parent
e6e2ad05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
200 deletions
+25
-200
extras/contrib/bootstrap
extras/contrib/bootstrap
+2
-0
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+4
-0
extras/contrib/src/Patches/x264-svn-win32.patch
extras/contrib/src/Patches/x264-svn-win32.patch
+19
-200
No files found.
extras/contrib/bootstrap
View file @
18ce7125
...
...
@@ -67,6 +67,7 @@ if test "$HOST" != "$BUILD"; then
LD
=
"
${
HOST
}
-ld"
RANLIB
=
"
${
HOST
}
-ranlib"
AR
=
"
${
HOST
}
-ar"
STRIP
=
"
${
HOST
}
-strip"
fi
# Check the HAVE_{OS}
...
...
@@ -254,6 +255,7 @@ echo "CXX = ${CXX}" >> config.mak
echo
"LD =
${
LD
}
"
>>
config.mak
echo
"RANLIB =
${
RANLIB
}
"
>>
config.mak
echo
"AR =
${
AR
}
"
>>
config.mak
echo
"STRIP =
${
STRIP
}
"
>>
config.mak
echo
"EXTRA_CFLAGS =
${
CFLAGS_TUNING
}
${
EXTRA_CFLAGS
}
"
>>
config.mak
echo
"EXTRA_CPPFLAGS =
${
EXTRA_CPPFLAGS
}
-isystem
\$
(PREFIX)/include"
>>
config.mak
echo
"EXTRA_LDFLAGS =
${
EXTRA_LDFLAGS
}
"
>>
config.mak
...
...
extras/contrib/src/Makefile
View file @
18ce7125
...
...
@@ -71,6 +71,10 @@ endif
ifneq
($(AR),)
HOSTCC
+=
AR
=
"
$(AR)
"
endif
ifneq
($(STRIP),)
HOSTCC
+=
STRIP
=
"
$(STRIP)
"
endif
# Define ranlib on non-cross compilation setups
ifeq
($(RANLIB),)
...
...
extras/contrib/src/Patches/x264-svn-win32.patch
View file @
18ce7125
Index: configure
===================================================================
--- configure (revision 6
1
2)
--- configure (revision 6
7
2)
+++ configure (working copy)
@@ -64,8 +64,101 @@
EXE=""
+AR="ar"
+AROPTS="rc"
+RANLIB="ranlib"
+
MACHINE="$(./config.guess)"
+# parse options
+
+for opt do
+ optarg="${opt#*=}"
+ case "$opt" in
+ --crosscompile=*)
+ CROSS="$optarg"
+ CC="$CROSS-gcc"
+ AR="$CROSS-ar"
+ RANLIB="$CROSS-ranlib"
+ MACHINE="`echo $CROSS | sed -e 's/-/-x-/g'`"
+ ;;
+ --prefix=*)
+ prefix="$optarg"
+ ;;
+ --exec-prefix=*)
+ exec_prefix="$optarg"
+ ;;
+ --bindir=*)
+ bindir="$optarg"
+ ;;
+ --libdir=*)
+ libdir="$optarg"
+ ;;
+ --includedir=*)
+ includedir="$optarg"
+ ;;
+ --enable-avis-input)
+ avis_input="yes"
+ ;;
+ --disable-avis-input)
+ avis_input="no"
+ ;;
+ --enable-mp4-output)
+ mp4_output="yes"
+ ;;
+ --disable-mp4-output)
+ mp4_output="no"
+ ;;
+ --extra-asflags=*)
+ ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
+ ;;
+ --extra-cflags=*)
+ CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
+ ;;
+ --extra-ldflags=*)
+ LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
+ ;;
+ --enable-pthread)
+ pthread="yes"
+ ;;
+ --disable-pthread)
+ pthread="no"
+ ;;
+ --enable-debug)
+ debug="yes"
+ ;;
+ --enable-gprof)
+ CFLAGS="$CFLAGS -pg"
+ LDFLAGS="$LDFLAGS -pg"
+ gprof="yes"
+ ;;
+ --enable-pic)
+ pic="yes"
+ ;;
+ --enable-gtk)
+ gtk="yes"
+ ;;
+ --disable-gtk)
+ gtk="no"
+ ;;
+ --enable-shared)
+ shared="yes"
+ if [ $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" ] ; then
+ pic="yes"
+ fi
+ ;;
+ --enable-visualize)
+ LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
+ CFLAGS="$CFLAGS -DVISUALIZE=1"
+ vis="yes"
+ ;;
+ *)
+ echo "Unknown option $opt, ignored"
+ ;;
+ esac
+done
+
+
case "${MACHINE#*-*-}" in
beos*)
SYS="BEOS"
@@ -183,88 +276,6 @@
esac
CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
-
-# parse options
-
-for opt do
- optarg="${opt#*=}"
- case "$opt" in
- --prefix=*)
- prefix="$optarg"
- ;;
- --exec-prefix=*)
- exec_prefix="$optarg"
- ;;
- --bindir=*)
- bindir="$optarg"
- ;;
- --libdir=*)
- libdir="$optarg"
- ;;
- --includedir=*)
- includedir="$optarg"
- ;;
- --enable-avis-input)
- avis_input="yes"
- ;;
- --disable-avis-input)
- avis_input="no"
- ;;
- --enable-mp4-output)
- mp4_output="yes"
- ;;
- --disable-mp4-output)
- mp4_output="no"
- ;;
- --extra-asflags=*)
- ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
- ;;
- --extra-cflags=*)
- CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
- ;;
- --extra-ldflags=*)
- LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
- ;;
- --enable-pthread)
- pthread="auto" # can't skip detection, since it differs by OS
- ;;
- --disable-pthread)
- pthread="no"
- ;;
- --enable-debug)
- debug="yes"
- ;;
- --enable-gprof)
- CFLAGS="$CFLAGS -pg"
- LDFLAGS="$LDFLAGS -pg"
- gprof="yes"
- ;;
- --enable-pic)
- pic="yes"
- ;;
- --enable-gtk)
- gtk="yes"
- ;;
- --disable-gtk)
- gtk="no"
- ;;
- --enable-shared)
- shared="yes"
- if [ $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" ] ; then
- pic="yes"
- fi
- ;;
- --enable-visualize)
- LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
- CFLAGS="$CFLAGS -DVISUALIZE=1"
- vis="yes"
- ;;
- *)
- echo "Unknown option $opt, ignored"
- ;;
- esac
-done
-
# autodetect options that weren't forced nor disabled
libpthread=""
@@ -363,6 +374,9 @@
@@ -428,6 +428,10 @@
ASFLAGS=$ASFLAGS
GTK=$gtk
EXE=$EXE
+AR=$AR
+AROPTS=$AROPTS
+RANLIB=$RANLIB
+AR=$AR
+STRIP=$STRIP
+AROPTS=$AROPTS
+RANLIB=$RANLIB
VIS=$vis
HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
DEVNULL=$DEVNULL
Index: Makefile
===================================================================
--- Makefile (revision
590
)
--- Makefile (revision
672
)
+++ Makefile (working copy)
@@ -
66,8 +66
,8 @@
@@ -
73,8 +73
,8 @@
default: $(DEP) x264$(EXE)
libx264.a: .depend $(OBJS) $(OBJASM)
...
...
@@ -218,8 +28,17 @@ Index: Makefile
$(SONAME): .depend $(OBJS) $(OBJASM)
$(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
@@ -138,14 +138,14 @@
rm -f config.mak config.h x264.pc
@@ -93,7 +93,7 @@
%.o: %.asm
$(AS) $(ASFLAGS) -o $@ $<
# delete local/anonymous symbols, so they don't show up in oprofile
- -@ strip -x $@
+ -@ $(STRIP) -x $@
.depend: config.mak
rm -f .depend
@@ -146,14 +146,14 @@
rm -rf test/
$(MAKE) -C gtk distclean
-install: x264 $(SONAME)
...
...
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