| 
									
										
										
										
											2011-09-13 12:49:36 -04:00
										 |  |  | USING: alien.c-types alien.libraries alien io.encodings.utf8 | 
					
						
							| 
									
										
										
										
											2011-09-13 02:06:08 -04:00
										 |  |  | io.pathnames system ;
 | 
					
						
							| 
									
										
										
										
											2011-09-12 15:27:34 -04:00
										 |  |  | IN: alien.libraries.unix | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-13 12:49:36 -04:00
										 |  |  | : (dlerror) ( -- string )
 | 
					
						
							| 
									
										
										
										
											2016-08-09 19:18:52 -04:00
										 |  |  |     \ c-string f "dlerror" { } f alien-invoke ; inline
 | 
					
						
							| 
									
										
										
										
											2011-09-13 02:06:08 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: unix dlerror (dlerror) ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: unix >deployed-library-path | 
					
						
							|  |  |  |     file-name "$ORIGIN" prepend-path ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: macosx >deployed-library-path | 
					
						
							|  |  |  |     file-name "@executable_path/../Frameworks" prepend-path ;
 |