mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	merge revision(s) 66823,66869: [Backport #15548]
Revert "mjit_worker.c: try passing -nostdlib to AIX"
	This reverts commit b32fb23083.
	This didn't work on AIX.
	mjit_worker.c: do not use GCC_NOSTDLIB_FLAGS for OpenBSD
	OpenBSD's GCC compiler has local extensions that break when
	`-nostartfiles -nodefaultlibs -nostdlib` is used.
	From: Jeremy Evans <merch-redmine@jeremyevans.net>
	[Bug #15548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
			
			
This commit is contained in:
		
							parent
							
								
									ad6e91def4
								
							
						
					
					
						commit
						66be165f30
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -247,9 +247,9 @@ static char *libruby_pathflag; | |||
| # define MJIT_CFLAGS_PIPE 0 | ||||
| #endif | ||||
| 
 | ||||
| // Use `-nodefaultlibs -nostdlib` for GCC where possible, which does not work on mingw and cygwin.
 | ||||
| // Use `-nodefaultlibs -nostdlib` for GCC where possible, which does not work on mingw, cygwin, AIX, and OpenBSD.
 | ||||
| // This seems to improve MJIT performance on GCC.
 | ||||
| #if defined __GNUC__ && !defined __clang__ && !defined(_WIN32) && !defined(__CYGWIN__) | ||||
| #if defined __GNUC__ && !defined __clang__ && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(_AIX) && !defined(__OpenBSD__) | ||||
| # define GCC_NOSTDLIB_FLAGS "-nodefaultlibs", "-nostdlib", | ||||
| #else | ||||
| # define GCC_NOSTDLIB_FLAGS /* empty */ | ||||
|  | @ -266,7 +266,7 @@ static const char *const CC_OPTIMIZE_ARGS[] = {MJIT_OPTFLAGS NULL}; | |||
| static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED GCC_PIC_FLAGS NULL}; | ||||
| static const char *const CC_DLDFLAGS_ARGS[] = { | ||||
|     MJIT_DLDFLAGS | ||||
| #if defined __GNUC__ && !defined __clang__ | ||||
| #if defined __GNUC__ && !defined __clang__ && !defined(__OpenBSD__) | ||||
|     "-nostartfiles", | ||||
| #endif | ||||
|     GCC_NOSTDLIB_FLAGS NULL | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| #define RUBY_VERSION "2.6.1" | ||||
| #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR | ||||
| #define RUBY_PATCHLEVEL 26 | ||||
| #define RUBY_PATCHLEVEL 27 | ||||
| 
 | ||||
| #define RUBY_RELEASE_YEAR 2019 | ||||
| #define RUBY_RELEASE_MONTH 1 | ||||
| #define RUBY_RELEASE_DAY 24 | ||||
| #define RUBY_RELEASE_DAY 26 | ||||
| 
 | ||||
| #include "ruby/version.h" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 naruse
						naruse