Skip to content

Commit 3e53a75

Browse files
icmartinwicke
authored andcommitted
Fix Make build under Linux (Ubuntu) (tensorflow#4260)
* Fix Make build under Linux (Ubuntu) * Add missing files to the list of source to build. * Add the -fPIC flag under Linux (ignored when no necessary). * Fix Make build under Linux (Ubuntu) * Add missing files to the list of source to build. * Add the -fPIC flag under Linux (ignored when no necessary). * Refactor Makefile change to comply with guidance. https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#fixing-makefile-issues * Refactor Makefile change to comply with guidance. https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#fixing-makefile-issues
1 parent fdcd01e commit 3e53a75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tensorflow/contrib/makefile/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ ifeq ($(HAS_GEN_HOST_PROTOC),true)
188188
LIBFLAGS += -L$(MAKEFILE_DIR)/gen/protobuf-host/lib
189189
export LD_LIBRARY_PATH=$(MAKEFILE_DIR)/gen/protobuf-host/lib
190190
endif
191+
CXXFLAGS += -fPIC
191192
LIBFLAGS += -Wl,--allow-multiple-definition -Wl,--whole-archive
192193
LDFLAGS := -Wl,--no-whole-archive
193194
endif

0 commit comments

Comments
 (0)