Add the 'shared' variant for protobuf. (#3703)
This commit is contained in:
		| @@ -40,3 +40,14 @@ class Protobuf(AutotoolsPackage): | ||||
|     depends_on('autoconf', type='build') | ||||
|     depends_on('libtool',  type='build') | ||||
|     depends_on('m4',       type='build') | ||||
|  | ||||
|     variant('shared', default=True, description='Build shared libraries.') | ||||
|  | ||||
|     def configure_args(self): | ||||
|         if '+shared' in self.spec: | ||||
|             return ['--enable-shared=yes', | ||||
|                     '--enable-static=no'] | ||||
|         else: | ||||
|             return ['--enable-shared=no', | ||||
|                     '--enable-static=yes', | ||||
|                     '--with-pic=yes'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 健美猫
					健美猫