Commit b3232455 authored by diego's avatar diego

djgpp port, first part

patch by Michael Kostylev, mik niipt ru


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11313 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 81d15d05
...@@ -1218,6 +1218,13 @@ case $targetos in ...@@ -1218,6 +1218,13 @@ case $targetos in
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
SHFLAGS='-shared -Wl,--enable-auto-image-base' SHFLAGS='-shared -Wl,--enable-auto-image-base'
;; ;;
*-dos|freedos|opendos)
enable memalign_hack
disable ffplay ffserver vhook
disable $INDEV_LIST $OUTDEV_LIST
network_extralibs="-lsocket"
EXESUF=".exe"
;;
linux) linux)
LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS" LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
enable dv1394 enable dv1394
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* miscellaneous OS support macros and functions. * miscellaneous OS support macros and functions.
*/ */
#if defined(__BEOS__) || defined(__INNOTEK_LIBC__) #if defined(__BEOS__) || defined(__INNOTEK_LIBC__) || defined(__DJGPP__)
typedef int socklen_t; typedef int socklen_t;
#endif #endif
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
#endif #endif
// Use rip-relative addressing if compiling PIC code on x86-64. // Use rip-relative addressing if compiling PIC code on x86-64.
#if defined(__MINGW32__) || defined(__CYGWIN__) || \ #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DJGPP__) || \
defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__)) defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__))
# if defined(ARCH_X86_64) && defined(PIC) # if defined(ARCH_X86_64) && defined(PIC)
# define MANGLE(a) "_" #a"(%%rip)" # define MANGLE(a) "_" #a"(%%rip)"
......
Markdown is supported
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