This commit makes the toolchain easier to use in two folds: 1. When compiling C/C++ source files, no need to add "-fPIC -pie" flags manually; 2. When running executables generated by the Occlum toolchain on Linux, no need to set the `LD_LIBRARY_PATH` manually.
		
			
				
	
	
		
			13 lines
		
	
	
		
			164 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			164 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| CXX := occlum-g++
 | |
| CXXFLAGS := -std=c++11
 | |
| 
 | |
| .PHONY: all clean
 | |
| 
 | |
| all: hello_world
 | |
| 
 | |
| hello_world: hello_world.cc
 | |
| 	$(CXX) $(CXXFLAGS) $^ -o $@
 | |
| 
 | |
| clean:
 | |
| 	rm -rf hello_world
 |